This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Add tests for atexit/on_exit firing order
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Cc: GLIBC Devel <libc-alpha at sourceware dot org>
- Date: Mon, 10 Jul 2017 15:18:16 +0000
- Subject: Re: [patch] Add tests for atexit/on_exit firing order
- Authentication-results: sourceware.org; auth=none
- References: <CALoOobMo+n2qfftAYG6Tyibg7Y7iCDn0PEMuBhvJyzwT4vVxZA@mail.gmail.com>
On Mon, 10 Jul 2017, Paul Pluzhnikov wrote:
> Greetings,
>
> While working a on patch for bz14333, I discovered that there are no
> tests for ordering of functions registered with atexit/on_exit, and in
> particular the case where such function itself registers new exit
> handlers.
>
> This patch adds such test. I am using on_exit here because it
> conveniently allows passing an argument.
I'd think that it would make sense to test all of atexit, on_exit,
at_quick_exit this way.
--
Joseph S. Myers
joseph@codesourcery.com