tests: silence warning about system return
authorEric Blake <ebb9@byu.net>
Sat, 30 Jan 2010 14:37:11 +0000 (07:37 -0700)
committerEric Blake <ebb9@byu.net>
Mon, 1 Feb 2010 13:24:57 +0000 (06:24 -0700)
Silence a compiler warning for platforms that mark system()
with attribute warn_unused_result.

* tests/test-areadlink-with-size.c (main): Ignore system result.
* tests/test-areadlink.c (main): Likewise.
* tests/test-areadlinkat-with-size.c (main): Likewise.
* tests/test-areadlinkat.c (main): Likewise.
* tests/test-canonicalize-lgpl.c (main): Likewise.
* tests/test-canonicalize.c (main): Likewise.
* tests/test-chown.c (main): Likewise.
* tests/test-fchownat.c (main): Likewise.
* tests/test-fdutimensat.c (main): Likewise.
* tests/test-fstatat.c (main): Likewise.
* tests/test-futimens.c (main): Likewise.
* tests/test-lchown.c (main): Likewise.
* tests/test-link.c (main): Likewise.
* tests/test-linkat.c (main): Likewise.
* tests/test-lstat.c (main): Likewise.
* tests/test-mkdir.c (main): Likewise.
* tests/test-mkdirat.c (main): Likewise.
* tests/test-mkfifo.c (main): Likewise.
* tests/test-mkfifoat.c (main): Likewise.
* tests/test-mknod.c (main): Likewise.
* tests/test-readlink.c (main): Likewise.
* tests/test-remove.c (main): Likewise.
* tests/test-rename.c (main): Likewise.
* tests/test-renameat.c (main): Likewise.
* tests/test-rmdir.c (main): Likewise.
* tests/test-symlink.c (main): Likewise.
* tests/test-symlinkat.c (main): Likewise.
* tests/test-unlink.c (main): Likewise.
* tests/test-unlinkat.c (main): Likewise.
* tests/test-utimens.c (main): Likewise.
* tests/test-utimensat.c (main): Likewise.
* modules/areadlink-tests (Depends-on): Add ignore-value.
* modules/areadlink-with-size-tests (Depends-on): Likewise.
* modules/areadlinkat-tests (Depends-on): Likewise.
* modules/areadlinkat-with-size-tests (Depends-on): Likewise.
* modules/canonicalize-lgpl-tests (Depends-on): Likewise.
* modules/canonicalize-tests (Depends-on): Likewise.
* modules/chown-tests (Depends-on): Likewise.
* modules/fdutimensat-tests (Depends-on): Likewise.
* modules/futimens-tests (Depends-on): Likewise.
* modules/lchown-tests (Depends-on): Likewise.
* modules/link-tests (Depends-on): Likewise.
* modules/linkat-tests (Depends-on): Likewise.
* modules/lstat-tests (Depends-on): Likewise.
* modules/mkdir-tests (Depends-on): Likewise.
* modules/mkfifo-tests (Depends-on): Likewise.
* modules/mkfifoat-tests (Depends-on): Likewise.
* modules/mknod-tests (Depends-on): Likewise.
* modules/openat-tests (Depends-on): Likewise.
* modules/readlink-tests (Depends-on): Likewise.
* modules/remove-tests (Depends-on): Likewise.
* modules/rename-tests (Depends-on): Likewise.
* modules/renameat-tests (Depends-on): Likewise.
* modules/rmdir-tests (Depends-on): Likewise.
* modules/symlink-tests (Depends-on): Likewise.
* modules/symlinkat-tests (Depends-on): Likewise.
* modules/unlink-tests (Depends-on): Likewise.
* modules/utimens-tests (Depends-on): Likewise.
* modules/utimensat-tests (Depends-on): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
60 files changed:
ChangeLog
modules/areadlink-tests
modules/areadlink-with-size-tests
modules/areadlinkat-tests
modules/areadlinkat-with-size-tests
modules/canonicalize-lgpl-tests
modules/canonicalize-tests
modules/chown-tests
modules/fdutimensat-tests
modules/futimens-tests
modules/lchown-tests
modules/link-tests
modules/linkat-tests
modules/lstat-tests
modules/mkdir-tests
modules/mkfifo-tests
modules/mkfifoat-tests
modules/mknod-tests
modules/openat-tests
modules/readlink-tests
modules/remove-tests
modules/rename-tests
modules/renameat-tests
modules/rmdir-tests
modules/symlink-tests
modules/symlinkat-tests
modules/unlink-tests
modules/utimens-tests
modules/utimensat-tests
tests/test-areadlink-with-size.c
tests/test-areadlink.c
tests/test-areadlinkat-with-size.c
tests/test-areadlinkat.c
tests/test-canonicalize-lgpl.c
tests/test-canonicalize.c
tests/test-chown.c
tests/test-fchownat.c
tests/test-fdutimensat.c
tests/test-fstatat.c
tests/test-futimens.c
tests/test-lchown.c
tests/test-link.c
tests/test-linkat.c
tests/test-lstat.c
tests/test-mkdir.c
tests/test-mkdirat.c
tests/test-mkfifo.c
tests/test-mkfifoat.c
tests/test-mknod.c
tests/test-readlink.c
tests/test-remove.c
tests/test-rename.c
tests/test-renameat.c
tests/test-rmdir.c
tests/test-symlink.c
tests/test-symlinkat.c
tests/test-unlink.c
tests/test-unlinkat.c
tests/test-utimens.c
tests/test-utimensat.c

index 335da1a723f05583b89d22e745f5744e4f0912b9..b3c6f3fbcada8438647f5335b90d4befd1c8360a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,66 @@
+2010-02-01  Eric Blake  <ebb9@byu.net>
+
+       tests: silence warning about system return
+       * tests/test-areadlink-with-size.c (main): Ignore system result.
+       * tests/test-areadlink.c (main): Likewise.
+       * tests/test-areadlinkat-with-size.c (main): Likewise.
+       * tests/test-areadlinkat.c (main): Likewise.
+       * tests/test-canonicalize-lgpl.c (main): Likewise.
+       * tests/test-canonicalize.c (main): Likewise.
+       * tests/test-chown.c (main): Likewise.
+       * tests/test-fchownat.c (main): Likewise.
+       * tests/test-fdutimensat.c (main): Likewise.
+       * tests/test-fstatat.c (main): Likewise.
+       * tests/test-futimens.c (main): Likewise.
+       * tests/test-lchown.c (main): Likewise.
+       * tests/test-link.c (main): Likewise.
+       * tests/test-linkat.c (main): Likewise.
+       * tests/test-lstat.c (main): Likewise.
+       * tests/test-mkdir.c (main): Likewise.
+       * tests/test-mkdirat.c (main): Likewise.
+       * tests/test-mkfifo.c (main): Likewise.
+       * tests/test-mkfifoat.c (main): Likewise.
+       * tests/test-mknod.c (main): Likewise.
+       * tests/test-readlink.c (main): Likewise.
+       * tests/test-remove.c (main): Likewise.
+       * tests/test-rename.c (main): Likewise.
+       * tests/test-renameat.c (main): Likewise.
+       * tests/test-rmdir.c (main): Likewise.
+       * tests/test-symlink.c (main): Likewise.
+       * tests/test-symlinkat.c (main): Likewise.
+       * tests/test-unlink.c (main): Likewise.
+       * tests/test-unlinkat.c (main): Likewise.
+       * tests/test-utimens.c (main): Likewise.
+       * tests/test-utimensat.c (main): Likewise.
+       * modules/areadlink-tests (Depends-on): Add ignore-value.
+       * modules/areadlink-with-size-tests (Depends-on): Likewise.
+       * modules/areadlinkat-tests (Depends-on): Likewise.
+       * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
+       * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
+       * modules/canonicalize-tests (Depends-on): Likewise.
+       * modules/chown-tests (Depends-on): Likewise.
+       * modules/fdutimensat-tests (Depends-on): Likewise.
+       * modules/futimens-tests (Depends-on): Likewise.
+       * modules/lchown-tests (Depends-on): Likewise.
+       * modules/link-tests (Depends-on): Likewise.
+       * modules/linkat-tests (Depends-on): Likewise.
+       * modules/lstat-tests (Depends-on): Likewise.
+       * modules/mkdir-tests (Depends-on): Likewise.
+       * modules/mkfifo-tests (Depends-on): Likewise.
+       * modules/mkfifoat-tests (Depends-on): Likewise.
+       * modules/mknod-tests (Depends-on): Likewise.
+       * modules/openat-tests (Depends-on): Likewise.
+       * modules/readlink-tests (Depends-on): Likewise.
+       * modules/remove-tests (Depends-on): Likewise.
+       * modules/rename-tests (Depends-on): Likewise.
+       * modules/renameat-tests (Depends-on): Likewise.
+       * modules/rmdir-tests (Depends-on): Likewise.
+       * modules/symlink-tests (Depends-on): Likewise.
+       * modules/symlinkat-tests (Depends-on): Likewise.
+       * modules/unlink-tests (Depends-on): Likewise.
+       * modules/utimens-tests (Depends-on): Likewise.
+       * modules/utimensat-tests (Depends-on): Likewise.
+
 2010-01-31  Bruno Haible  <bruno@clisp.org>
 
        Perform the same test for many <math.h> functions.
index 37c26c2a20a3c5ca4f8528ff3da77025bcfefb2d..869be2c34b8934c8ccd86d621ab936c866d2361e 100644 (file)
@@ -4,6 +4,7 @@ tests/test-areadlink.c
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 symlink
 
index 1dddea8293cfcee1f27a9e1825f81310f5a07baf..b9b3ded0a3be04082196440f08a92dfb6268aa48 100644 (file)
@@ -4,6 +4,7 @@ tests/test-areadlink-with-size.c
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 symlink
 
index 45a8d48cf9748a772ab7eb4602237822e13728ee..422ac61412c96668c9857c098b4a069dba635f43 100644 (file)
@@ -4,6 +4,7 @@ tests/test-areadlinkat.c
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 symlink
 
index 972bc3eeb1de8cc657e42901db69cd77abe7f96f..b86d6e70a97651623a558a24e7abed13297dee54 100644 (file)
@@ -4,6 +4,7 @@ tests/test-areadlinkat-with-size.c
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 
 configure.ac:
index bc07ea34c6bd4e12efd620daf39b27430b2bfbd3..fd49d69e35e0d45a769057f5eecc41c81f5330ab 100644 (file)
@@ -4,6 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 same-inode
 symlink
 
index fb18d66b25cce1fa0869c1fe74173b338523dc9f..9b5acd830ece678d45c0d72664799f57c9821b7d 100644 (file)
@@ -3,6 +3,7 @@ tests/test-canonicalize.c
 tests/macros.h
 
 Depends-on:
+ignore-value
 progname
 same-inode
 symlink
index 68f74f0ae6d68094abddb6891aedb60a83cce169..359ba1be7e77f37ff6bfb6aca268161458c9043b 100644 (file)
@@ -6,6 +6,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 lstat
 mgetgroups
 progname
index dc55c45b2db7e862f8b447b08c87dcfe97d888b5..48ea78d23325590370cfa72c9dc576bda335265b 100644 (file)
@@ -8,6 +8,7 @@ tests/test-fdutimensat.c
 tests/macros.h
 
 Depends-on:
+ignore-value
 progname
 timespec
 usleep
index 330711dba9a256f126ff21dc8a5198d711aca2dd..124b62f49b7c7bbfdf00cfde88d5f7af0f620d2e 100644 (file)
@@ -7,6 +7,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 timespec
 usleep
 utimecmp
index f3935d6c75307be4d6247d4f56777c0dd39cdc13..72ab3c10f46c204e3c3787c553240ffe5b2d763a 100644 (file)
@@ -6,6 +6,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 mgetgroups
 progname
 usleep
index b7fb2ffaa7f62a5ac9580311789466bf3c2bfe6d..5b1978e856d2b44dea045c21042fed1ca0e780e5 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 errno
 stdbool
 sys_stat
index 602d18aa48d306d41adc90596a1113de132802ab..6df4781973a0e663376aa4f6c2a9915d08e632a9 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 areadlink-with-size
 filenamecat
 progname
index a0296a64003fb8cc5ca9ade593f0332a1ec82ec3..911a7ff6277a7520616477186c1f701f6b2a3da3 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 errno
 same-inode
 stdbool
index 5f455c71fa81179c34c76581e283f37e2237668e..fea1b63e1843a615cf3d69532e0c45d55a8455c7 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 symlink
 
index 1f92a41b59dadb9453f8c530a2b49b372349feb0..00ca98f97e6792f5d88a90725bb97a5312673126 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 symlink
 
index 5e72b9460b7595477f12cc80ec7abb7635c5a639..8be33df05dd1f777a2f1323d234f533c435f232c 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 symlink
 
 configure.ac:
index c273f66d0b0a58238a942297154faf2a679b638b..e35ffec7c694b3ee2d7284dffba0c9d4f5879eff 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 symlink
 
index 489601c978cc45caf7569b927f3811510a59bd9a..250a574593509d5e56d22ac1c1ffe65bfc1d2c60 100644 (file)
@@ -16,6 +16,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 mgetgroups
 pathmax
 usleep
index 1aeac9267627023faa64ebc9e1bbe1be1b2c79fe..cbd84a5349314ca4394b869a599d9961d3993e79 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 symlink
 
index 9e2e49c7528571fe83db30ba4034c92b431ef548..498c7d6e497061ff7f5fd743c6a3d78f3e86038d 100644 (file)
@@ -4,6 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 symlink
 sys_stat
 
index 84c4a3fbc75665c735b12c4527953817c12a8866..339ecdf57c292978cedce304f722532d778b2519 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 errno
 link
 stdbool
index 53467dbdb0e4df93e2e71664e27dcd044227330b..dcef7c19d07f1db3ec4e608a685c022cfa475271 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 filenamecat
 progname
 xgetcwd
index 5619ad5110c3eb189b5abccd7cfd72af86479fcf..19a5240ef2e8b6496d7deb79445d51c580779a6a 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 symlink
 
index 3f94fd20bf0b56dcdddc8f33178ec132e17a3fa0..a07074e325ce839c60fbb21ee3c4170bdc3aa317 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 
 configure.ac:
index e3ee6c3d72744cd61cc3aaa947ca183583bc1889..c1678c02185fdf5e20e90bae4d7055897cc739d7 100644 (file)
@@ -6,6 +6,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 
 configure.ac:
 
index f49fe4de6642c3f7148296744532f6115c5190d3..6a57d4993068b0fe9134c5462a57206666392dbc 100644 (file)
@@ -5,6 +5,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 stdbool
 symlink
 unlinkdir
index a9ddd27b090527359a227091f9e22ac1d599a434..d0566a6161e802df03c2ef2efa655e5ed5d5f004 100644 (file)
@@ -8,6 +8,7 @@ tests/test-utimens.c
 tests/macros.h
 
 Depends-on:
+ignore-value
 symlink
 timespec
 usleep
index 75516d85db8ace1d35f7bd727f158a9ab2ed9f8d..26dbac6762ef39eae709d02345b941e7b23d3b5e 100644 (file)
@@ -8,6 +8,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+ignore-value
 progname
 timespec
 usleep
index ae56883f2359f31a423ac863596a1ece01113900..2344390b067a84687ab49c6c1a927a1c8e6a863a 100644 (file)
@@ -29,6 +29,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-areadlink-with-size.t"
@@ -39,7 +40,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_areadlink (areadlink_with_size, true);
 }
index 7521df017c9545689fd2c231ca7f7ebcfdb05160..c3e5822641c1faf5038a2b72f5759bad9805d8c0 100644 (file)
@@ -29,6 +29,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-areadlink.t"
@@ -46,7 +47,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_areadlink (do_areadlink, true);
 }
index 9fab37070f109643e1ee05cec61ad73897f63b81..f709ea825b45c28ce0cbd6f1b88061f1aa53accc 100644 (file)
@@ -29,6 +29,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-areadlinkat-with-size.t"
@@ -50,7 +51,7 @@ main (void)
   int result;
 
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Basic tests.  */
   result = test_areadlink (do_areadlinkat_with_size, false);
index cb5848a1a8fd67225e988070b44a2aa4e00fb3da..c93a2d81de47501f730a0652ccfb668b5598494b 100644 (file)
@@ -29,6 +29,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-areadlinkat.t"
@@ -50,7 +51,7 @@ main (void)
   int result;
 
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Basic tests.  */
   result = test_areadlink (do_areadlinkat, false);
index 816b4019abba2367d75f0e2c0aa94e78adbd4357..cbf481d39a76dcd9dcc2ac2716142348b4c371b0 100644 (file)
@@ -32,6 +32,7 @@ SIGNATURE_CHECK (canonicalize_file_name, char *, (const char *));
 #include <unistd.h>
 
 #include "same-inode.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "t-can-lgpl.tmp"
@@ -55,7 +56,7 @@ main (void)
      any leftovers from a previous partial run.  */
   {
     int fd;
-    system ("rm -rf " BASE " ise");
+    ignore_value (system ("rm -rf " BASE " ise"));
     ASSERT (mkdir (BASE, 0700) == 0);
     fd = creat (BASE "/tra", 0600);
     ASSERT (0 <= fd);
index b3086b1a137d6cbdbb6c987a6d81c1b60f828ab9..f8d35365f456131cd5bd2bec7d30ca870f08383b 100644 (file)
@@ -29,6 +29,7 @@
 #include <unistd.h>
 
 #include "same-inode.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "t-can.tmp"
@@ -46,7 +47,7 @@ main (void)
      any leftovers from a previous partial run.  */
   {
     int fd;
-    system ("rm -rf " BASE " ise");
+    ignore_value (system ("rm -rf " BASE " ise"));
     ASSERT (mkdir (BASE, 0700) == 0);
     fd = creat (BASE "/tra", 0600);
     ASSERT (0 <= fd);
index 57bb810d40fedc8f500f6acbf5abb065bf057a49..380c9a3502cf701b192af2ffe16c083562373590 100644 (file)
@@ -32,6 +32,7 @@ SIGNATURE_CHECK (chown, int, (char const *, uid_t, gid_t));
 
 #include "mgetgroups.h"
 #include "stat-time.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-chown.t"
@@ -42,7 +43,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_chown (chown, true);
 }
index 7bc763301d9af4c8290881cec4c994bf1bbe72a6..0843be7cd2530cc8a9132be27418e8c989cbe2ad 100644 (file)
@@ -33,6 +33,7 @@ SIGNATURE_CHECK (fchownat, int, (int, char const *, uid_t, gid_t, int));
 #include "mgetgroups.h"
 #include "openat.h"
 #include "stat-time.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-fchownat.t"
@@ -63,7 +64,7 @@ main (void)
   int result2; /* Skip because of no lchown support.  */
 
   /* Clean up any trash from prior testsuite runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Basic tests.  */
   result1 = test_chown (do_chown, true);
index 77a6d941c04481a876b0107528ba5801dfe6942b..949ca47aa33eed660cd2d85478000bc42cb17174 100644 (file)
@@ -25,6 +25,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-fdutimensat.t"
@@ -84,7 +85,7 @@ main (void)
   int fd;
 
   /* Clean up any trash from prior testsuite runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Basic tests.  */
   result1 = test_utimens (do_utimens, true);
index 89cd07945ebdd06bcf46de51cf92fb5844a79b9e..63e5a13907291e3d1fef0748f84e2f9b5c927ebc 100644 (file)
@@ -33,6 +33,7 @@ SIGNATURE_CHECK (fstatat, int, (int, char const *, struct stat *, int));
 #include "openat.h"
 #include "pathmax.h"
 #include "same-inode.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-fstatat.t"
@@ -62,7 +63,7 @@ main (void)
   int result;
 
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   result = test_stat_func (do_stat, false);
   ASSERT (test_lstat_func (do_lstat, false) == result);
index 99b990332eee361e2364666ff503c6dca8dd4a6f..e555312ede083cc623b153ec2a47d352a2a3a077 100644 (file)
@@ -34,6 +34,7 @@ SIGNATURE_CHECK (futimens, int, (int, struct timespec const[2]));
 #include "stat-time.h"
 #include "timespec.h"
 #include "utimecmp.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-futimens.t"
@@ -44,7 +45,7 @@ int
 main (void)
 {
   /* Clean up any trash from prior testsuite runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_futimens (futimens, true);
 }
index ce2da404a808012ae68c75ed6567bc3e20aec12d..9b868ebc19c188f618c224edebbbd8bdb28ba468 100644 (file)
@@ -32,6 +32,7 @@ SIGNATURE_CHECK (lchown, int, (char const *, uid_t, gid_t));
 
 #include "mgetgroups.h"
 #include "stat-time.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-lchown.t"
@@ -42,7 +43,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_lchown (lchown, true);
 }
index 17b1b82aae8e95b5e26769e3af49b9c0b8297752..65ee9e09d7ad4fcdb716dbba210a3c3d48349954 100644 (file)
@@ -30,6 +30,7 @@ SIGNATURE_CHECK (link, int, (char const *, char const *));
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-link.t"
@@ -40,7 +41,7 @@ int
 main (void)
 {
   /* Remove any garbage left from previous partial runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_link (link, true);
 }
index c2ad0e50364a0cee5afe07ff31ee1dc6918cb82b..1dbfad5270510834b8b9cbc603652f8230a3e548 100644 (file)
@@ -34,6 +34,7 @@ SIGNATURE_CHECK (linkat, int, (int, char const *, int, char const *, int));
 #include "filenamecat.h"
 #include "same-inode.h"
 #include "xgetcwd.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-linkat.t"
@@ -81,7 +82,7 @@ main (void)
   int result;
 
   /* Clean up any trash from prior testsuite runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Test basic link functionality, without mentioning symlinks.  */
   result = test_link (do_link, true);
index 23ffec4c90554093f4ca4781736d2b005f42d0c6..b8f9237e5b5b807342c9d23e857ac6479c7522b7 100644 (file)
@@ -35,6 +35,7 @@ SIGNATURE_CHECK (lstat, int, (char const *, struct stat *));
 #include <unistd.h>
 
 #include "same-inode.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-lstat.t"
@@ -53,7 +54,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_lstat_func (do_lstat, true);
 }
index 771758e2958ee67714b85b48563f79ef07fffb25..47b242a429a68f332a1f3a3eab621f8a32ad650d 100644 (file)
@@ -30,6 +30,7 @@ SIGNATURE_CHECK (mkdir, int, (char const *, mode_t));
 #include <stdlib.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-mkdir.t"
@@ -40,7 +41,7 @@ int
 main (void)
 {
   /* Clean up any trash from prior testsuite runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_mkdir (mkdir, true);
 }
index 9aee33a7d023400f45b6dfaab91942d6fb721d65..c7451968e0020c4320af47b250599f9bea0e393c 100644 (file)
@@ -30,6 +30,7 @@ SIGNATURE_CHECK (mkdirat, int, (int, char const *, mode_t));
 #include <stdlib.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-mkdirat.t"
@@ -51,7 +52,7 @@ main (void)
   int result;
 
   /* Clean up any trash from prior testsuite runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Test basic mkdir functionality.  */
   result = test_mkdir (do_mkdir, false);
index 84f4a8bec9dbe8bf8ac76909bc1a14be99162380..ecc9570c16f8dffde795472eeca476534e9f2ff3 100644 (file)
@@ -30,6 +30,7 @@ SIGNATURE_CHECK (mkfifo, int, (char const *, mode_t));
 #include <stdlib.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-mkfifo.t"
@@ -40,7 +41,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_mkfifo (mkfifo, true);
 }
index 01fc4da5501e7b1953f57107eb2c51959aa175b6..16511433ca82fdaa92c289e3579f62de53d39885 100644 (file)
@@ -32,6 +32,7 @@ SIGNATURE_CHECK (mknodat, int, (int, char const *, mode_t, dev_t));
 #include <string.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-mkfifoat.t"
@@ -72,7 +73,7 @@ main (void)
   int result;
 
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Basic tests.  */
   result = test_mkfifo (do_mkfifoat, true);
index 5d19f5f4435fb32cfc499212286d2ccbf9157d05..16f48e9dab5c7dd1e35e4d1262380230f271ba5b 100644 (file)
@@ -30,6 +30,7 @@ SIGNATURE_CHECK (mknod, int, (char const *, mode_t, dev_t));
 #include <stdlib.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-mknod.t"
@@ -47,7 +48,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* We can only portably test creation of fifos.  Anything else
      requires root privileges and knowledge of device numbers.  */
index 4fb3a0035a76f60ec40e0884b02c6bbf8e66f6b8..a144964f0c4f45711a99a7ef5a622de6b0d13d0b 100644 (file)
@@ -31,6 +31,7 @@ SIGNATURE_CHECK (readlink, ssize_t, (char const *, char *, size_t));
 #include <string.h>
 #include <sys/stat.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-readlink.t"
@@ -41,7 +42,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_readlink (readlink, true);
 }
index 870878e751fd72ef09db3659ea382ccc30a67b41..4dffcafaf0ace113338ee31c0a9130688da3221e 100644 (file)
@@ -30,6 +30,7 @@ SIGNATURE_CHECK (remove, int, (char const *));
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-remove.t"
@@ -38,7 +39,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Setup.  */
   ASSERT (mkdir (BASE "dir", 0700) == 0);
index 10cabf1815f51cf3846b3b758a022fc50fcb480c..c5c6c439195f70c576c955ef65fed8e44e1f2d41 100644 (file)
@@ -29,6 +29,7 @@ SIGNATURE_CHECK (rename, int, (char const *, char const *));
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-rename.t"
@@ -39,7 +40,7 @@ int
 main (void)
 {
   /* Remove any garbage left from previous partial runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_rename (rename, true);
 }
index 687700e1bec515b42075432b24cae619a5bbc772..e5fefa1f5df62d8d70d2efdee1dbabaa63e0fd84 100644 (file)
@@ -32,6 +32,7 @@ SIGNATURE_CHECK (renameat, int, (int, char const *, int, char const *));
 
 #include "filenamecat.h"
 #include "xgetcwd.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-renameat.t"
@@ -57,7 +58,7 @@ main (void)
   int result;
 
   /* Clean up any trash from prior testsuite runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Test basic rename functionality, using current directory.  */
   result = test_rename (do_rename, false);
index a155e1b529670f5f5ec653eba90d9856ad00fe65..7b1ef37d5bb8242cbfb427524fbc4d207d709a23 100644 (file)
@@ -30,6 +30,7 @@ SIGNATURE_CHECK (rmdir, int, (char const *));
 #include <stdlib.h>
 #include <sys/stat.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-rmdir.t"
@@ -40,7 +41,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_rmdir_func (rmdir, true);
 }
index 23697737f5cb494fcd52549d82cad149d7eb965d..d2df54c45ab6d40e7af320ef953c258297c0b524 100644 (file)
@@ -30,6 +30,7 @@ SIGNATURE_CHECK (symlink, int, (char const *, char const *));
 #include <stdlib.h>
 #include <sys/stat.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-symlink.t"
@@ -40,7 +41,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_symlink (symlink, true);
 }
index 7ac3f58262f864d224737217f762d06e55220270..c3dec293db71955ea1ad550e56c0eb43d4662428 100644 (file)
@@ -32,6 +32,7 @@ SIGNATURE_CHECK (readlinkat, ssize_t, (int, char const *, char *, size_t));
 #include <string.h>
 #include <sys/stat.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #ifndef HAVE_SYMLINK
@@ -64,7 +65,7 @@ main (void)
   int result;
 
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Perform same checks as counterpart functions.  */
   result = test_readlink (do_readlink, false);
index 3d63a3113b88c7de8e943b871dbbc8eb7d873b1b..4f7de5fc6998b13ebbaa3c355d2a4e231a6c4ee6 100644 (file)
@@ -32,6 +32,7 @@ SIGNATURE_CHECK (unlink, int, (char const *));
 #include <sys/stat.h>
 
 #include "unlinkdir.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-unlink.t"
@@ -42,7 +43,7 @@ int
 main (void)
 {
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   return test_unlink_func (unlink, true);
 }
index e0cc1c5a51c467c3e2be8b2a97f1a231d40a438e..7d805743842540aa4df4d4fd49471bb201a85a14 100644 (file)
@@ -31,6 +31,7 @@ SIGNATURE_CHECK (unlinkat, int, (int, char const *, int));
 #include <sys/stat.h>
 
 #include "unlinkdir.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-unlinkat.t"
@@ -62,7 +63,7 @@ main (void)
   int result2;
 
   /* Remove any leftovers from a previous partial run.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   result1 = test_rmdir_func (rmdirat, false);
   result2 = test_unlink_func (unlinker, false);
index ae2402de6564f2e00af4103b5fe161405e022644..f2a31a88eda612a3c5e9892fc7cc146a71e49509 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-utimens.t"
@@ -66,7 +67,7 @@ main (void)
   int result3; /* Skip because of no lutimens support.  */
 
   /* Clean up any trash from prior testsuite runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   result1 = test_utimens (utimens, true);
   ASSERT (test_utimens (do_fdutimens, false) == result1);
index 68dab5c5e5a7d2bb18f44684bb10a43f401fd61a..07bdc319e8bfad15330b411b28f9bcf0767dc2b7 100644 (file)
@@ -35,6 +35,7 @@ SIGNATURE_CHECK (utimensat, int, (int, char const *, struct timespec const[2],
 #include "stat-time.h"
 #include "timespec.h"
 #include "utimecmp.h"
+#include "ignore-value.h"
 #include "macros.h"
 
 #define BASE "test-utimensat.t"
@@ -66,7 +67,7 @@ main (void)
   int fd;
 
   /* Clean up any trash from prior testsuite runs.  */
-  system ("rm -rf " BASE "*");
+  ignore_value (system ("rm -rf " BASE "*"));
 
   /* Basic tests.  */
   result1 = test_utimens (do_utimensat, true);