mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Conditionalize some tests' use of SA_SIGINFO.
This commit is contained in:
parent
8272780608
commit
cfa69b0bb2
@ -1,5 +1,12 @@
|
||||
2015-02-06 Roland McGrath <roland@hack.frob.com>
|
||||
|
||||
* nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
|
||||
on [SA_SIGINFO].
|
||||
* nptl/tst-cancel21.c (do_test): Likewise.
|
||||
* debug/tst-backtrace6.c: Include <signal.h> first thing.
|
||||
Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
|
||||
[!SA_SIGINFO]: Make it a stub test.
|
||||
|
||||
* misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
|
||||
SIGCHLD; it's redundant with SIG_IGN as sa_handler.
|
||||
|
||||
|
@ -17,5 +17,12 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#define SIGACTION_FLAGS SA_SIGINFO
|
||||
#include <debug/tst-backtrace5.c>
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef SA_SIGINFO
|
||||
# define SIGACTION_FLAGS SA_SIGINFO
|
||||
# include <debug/tst-backtrace5.c>
|
||||
#else
|
||||
# define TEST_FUNCTION 0
|
||||
# include "../test-skeleton.c"
|
||||
#endif
|
||||
|
@ -227,6 +227,7 @@ do_test (void)
|
||||
if (do_one_test ())
|
||||
return 1;
|
||||
|
||||
#ifdef SA_SIGINFO
|
||||
sa.sa_sigaction = (void (*)(int, siginfo_t *, void *)) sh;
|
||||
sigemptyset (&sa.sa_mask);
|
||||
sa.sa_flags = SA_SIGINFO;
|
||||
@ -254,6 +255,7 @@ do_test (void)
|
||||
puts ("sa_flags = SA_SIGINFO|SA_ONSTACK test");
|
||||
if (do_one_test ())
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -257,6 +257,7 @@ do_test (void)
|
||||
if (do_one_test ())
|
||||
return 1;
|
||||
|
||||
#ifdef SA_SIGINFO
|
||||
sa.sa_sigaction = (void (*)(int, siginfo_t *, void *)) sh;
|
||||
sigemptyset (&sa.sa_mask);
|
||||
sa.sa_flags = SA_SIGINFO;
|
||||
@ -284,6 +285,7 @@ do_test (void)
|
||||
puts ("sa_flags = SA_SIGINFO|SA_ONSTACK test");
|
||||
if (do_one_test ())
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user