pthread_sigmask tests: Avoid a compiler warning.
authorBruno Haible <bruno@clisp.org>
Sat, 9 Jul 2011 00:00:59 +0000 (02:00 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 9 Jul 2011 00:00:59 +0000 (02:00 +0200)
* tests/test-pthread_sigmask1.c (main): Complain if system() returns
non-zero.

ChangeLog
tests/test-pthread_sigmask1.c

index 919c98f..e3e802e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-07-08  Bruno Haible  <bruno@clisp.org>
 
+       pthread_sigmask tests: Avoid a compiler warning.
+       * tests/test-pthread_sigmask1.c (main): Complain if system() returns
+       non-zero.
+
        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.
index d09c216..f746ec1 100644 (file)
@@ -60,7 +60,7 @@ main (int argc, char *argv[])
 
   /* Request a SIGINT signal from outside.  */
   sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
-  system (command);
+  ASSERT (system (command) == 0);
 
   /* Wait.  */
   sleep (2);