diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-02-06 12:31:11 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-02-06 12:31:11 -0800 |
commit | 022f481264c197e1b0f20faa58cc4c21ce099597 (patch) | |
tree | d6c35ae76e9c8e8ce49fd5b33648dff188456191 /nptl/tst-signal7.c | |
parent | 1ac074e66e8ee0e548742fcc79a705284448aea6 (diff) | |
download | glibc-022f481264c197e1b0f20faa58cc4c21ce099597.tar.gz glibc-022f481264c197e1b0f20faa58cc4c21ce099597.tar.xz glibc-022f481264c197e1b0f20faa58cc4c21ce099597.zip |
NPTL: Conditionalize some sanity tests for SIGCANCEL/SIGSETXID.
Diffstat (limited to 'nptl/tst-signal7.c')
-rw-r--r-- | nptl/tst-signal7.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/tst-signal7.c b/nptl/tst-signal7.c index b3889891cc..1fbf3dbf72 100644 --- a/nptl/tst-signal7.c +++ b/nptl/tst-signal7.c @@ -27,6 +27,7 @@ do_test (void) { int result = 0; +#ifdef SIGCANCEL errno = 0; if (sigaction (SIGCANCEL, NULL, NULL) == 0) { @@ -38,7 +39,9 @@ do_test (void) puts ("sigaction(SIGCANCEL) did not set errno to EINVAL"); result = 1; } +#endif +#ifdef SIGSETXID errno = 0; if (sigaction (SIGSETXID, NULL, NULL) == 0) { @@ -50,6 +53,7 @@ do_test (void) puts ("sigaction(SIGSETXID) did not set errno to EINVAL"); result = 1; } +#endif return result; } |