sigprocmask tests: A better way to avoid a compiler warning.
authorBruno Haible <bruno@clisp.org>
Fri, 8 Jul 2011 23:59:31 +0000 (01:59 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 9 Jul 2011 00:00:06 +0000 (02:00 +0200)
* 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.

ChangeLog
modules/sigprocmask-tests
tests/test-sigprocmask.c

index cb12185916e96bd3668d9383ff15c51a26938a01..919c98f2aa17b093995fae619f2b5c866a2909a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index f6c0410bea8fdefba340c646020c638f841ad9b4..80fcd81fea4982a555472596a83e3ce97412a059 100644 (file)
@@ -4,7 +4,6 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
-ignore-value
 sleep
 
 configure.ac:
index 973c5d88e140ad32e7652bcf1ddfa2e84590dca9..8b0657ef6a40450e614791410b341f3093b081ac 100644 (file)
@@ -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);