From e65912f8b2a6fa966b1ba45360070cf9f25568b4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 28 Oct 2016 18:43:57 +0200 Subject: rework most tests to work as standalone package --- test/nptl/tst-signal7.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/nptl/tst-signal7.c') 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 , 2005. @@ -17,7 +17,6 @@ . */ #include -#include #include #include @@ -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; } -- cgit v1.2.3