changeset 15385:1ba9b52b2fba

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 09 Jul 2011 01:59:31 +0200
parents 2187b5650eca
children 981bbe46bba1
files ChangeLog modules/sigprocmask-tests tests/test-sigprocmask.c
diffstat 3 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/modules/sigprocmask-tests
+++ b/modules/sigprocmask-tests
@@ -4,7 +4,6 @@
 tests/macros.h
 
 Depends-on:
-ignore-value
 sleep
 
 configure.ac:
--- a/tests/test-sigprocmask.c
+++ b/tests/test-sigprocmask.c
@@ -28,7 +28,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 
-#include "ignore-value.h"
 #include "macros.h"
 
 #if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
@@ -62,7 +61,7 @@
 
   /* 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);