diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | debug/tst-backtrace6.c | 11 | ||||
-rw-r--r-- | nptl/tst-cancel20.c | 2 | ||||
-rw-r--r-- | nptl/tst-cancel21.c | 2 |
4 files changed, 20 insertions, 2 deletions
@@ -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. diff --git a/debug/tst-backtrace6.c b/debug/tst-backtrace6.c index eb5028e..9c1ed75 100644 --- a/debug/tst-backtrace6.c +++ b/debug/tst-backtrace6.c @@ -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 diff --git a/nptl/tst-cancel20.c b/nptl/tst-cancel20.c index 4a964da..51b558e 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 35a27d4..b54f236 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; } |