diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-02-06 12:29:50 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-02-06 12:29:50 -0800 |
commit | cfa69b0bb23b69087b5619a76d52eba8743cbbb2 (patch) | |
tree | 832e3f9c2cf14a4d6805ee7c1bcd07adb7f5caed /nptl | |
parent | 827278060826e62e5f30d9f39f745e075669dc26 (diff) | |
download | glibc-cfa69b0bb23b69087b5619a76d52eba8743cbbb2.tar glibc-cfa69b0bb23b69087b5619a76d52eba8743cbbb2.tar.gz glibc-cfa69b0bb23b69087b5619a76d52eba8743cbbb2.tar.bz2 glibc-cfa69b0bb23b69087b5619a76d52eba8743cbbb2.zip |
Conditionalize some tests' use of SA_SIGINFO.
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/tst-cancel20.c | 2 | ||||
-rw-r--r-- | nptl/tst-cancel21.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/nptl/tst-cancel20.c b/nptl/tst-cancel20.c index 4a964da487..51b558e98d 100644 --- a/nptl/tst-cancel20.c +++ b/nptl/tst-cancel20.c @@ -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; } diff --git a/nptl/tst-cancel21.c b/nptl/tst-cancel21.c index 35a27d4b51..b54f236b03 100644 --- a/nptl/tst-cancel21.c +++ b/nptl/tst-cancel21.c @@ -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; } |