diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | modules/sigprocmask-tests | 1 | ||||
-rw-r--r-- | tests/test-sigprocmask.c | 3 |
3 files changed, 8 insertions, 3 deletions
@@ -1,5 +1,12 @@ 2011-07-08 Bruno Haible <bruno@clisp.org> + sigprocmask tests: A better way to avoid a compiler warning. + * tests/test-sigprocmask.c: Don't include "ignore-value.h". + (main): Complain if system() returns non-zero. + * modules/sigprocmask-tests (Depends-on): Remove ignore-value. + +2011-07-08 Bruno Haible <bruno@clisp.org> + pthread_sigmask: Work around IRIX bug. * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX bug. diff --git a/modules/sigprocmask-tests b/modules/sigprocmask-tests index f6c0410bea..80fcd81fea 100644 --- a/modules/sigprocmask-tests +++ b/modules/sigprocmask-tests @@ -4,7 +4,6 @@ tests/signature.h tests/macros.h Depends-on: -ignore-value sleep configure.ac: diff --git a/tests/test-sigprocmask.c b/tests/test-sigprocmask.c index 973c5d88e1..8b0657ef6a 100644 --- a/tests/test-sigprocmask.c +++ b/tests/test-sigprocmask.c @@ -28,7 +28,6 @@ SIGNATURE_CHECK (sigprocmask, int, (int, const sigset_t *, sigset_t *)); #include <stdlib.h> #include <unistd.h> -#include "ignore-value.h" #include "macros.h" #if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) @@ -62,7 +61,7 @@ main (int argc, char *argv[]) /* Request a SIGINT signal from outside. */ sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid); - ignore_value (system (command)); + ASSERT (system (command) == 0); /* Wait. */ sleep (2); |