diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 18:43:57 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 18:43:57 +0200 |
commit | e65912f8b2a6fa966b1ba45360070cf9f25568b4 (patch) | |
tree | 7fd84c87041f86ba24c03cacd0aa0c656ef88d33 /test/nptl/tst-signal7.c | |
parent | 7988979a722b4cdf287b2093956a76a3f19b9897 (diff) |
rework most tests to work as standalone package
Diffstat (limited to 'test/nptl/tst-signal7.c')
-rw-r--r-- | test/nptl/tst-signal7.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/nptl/tst-signal7.c b/test/nptl/tst-signal7.c index 629f377..a635fcd 100644 --- a/test/nptl/tst-signal7.c +++ b/test/nptl/tst-signal7.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. +/* Copyright (C) 2005-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2005. @@ -17,7 +17,6 @@ <http://www.gnu.org/licenses/>. */ #include <errno.h> -#include <pthreadP.h> #include <signal.h> #include <stdio.h> @@ -27,6 +26,7 @@ do_test (void) { int result = 0; +#ifdef SIGCANCEL errno = 0; if (sigaction (SIGCANCEL, NULL, NULL) == 0) { @@ -38,7 +38,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 +52,7 @@ do_test (void) puts ("sigaction(SIGSETXID) did not set errno to EINVAL"); result = 1; } +#endif return result; } |