Mercurial > hg > octave-nkf > gnulib-hg
changeset 12842:b2bf8684a2db
tests: silence warning about system return
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>
line wrap: on
line diff
--- 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.
--- a/modules/areadlink-tests +++ b/modules/areadlink-tests @@ -4,6 +4,7 @@ tests/macros.h Depends-on: +ignore-value stdbool symlink
--- a/modules/areadlink-with-size-tests +++ b/modules/areadlink-with-size-tests @@ -4,6 +4,7 @@ tests/macros.h Depends-on: +ignore-value stdbool symlink
--- a/modules/areadlinkat-tests +++ b/modules/areadlinkat-tests @@ -4,6 +4,7 @@ tests/macros.h Depends-on: +ignore-value stdbool symlink
--- a/modules/areadlinkat-with-size-tests +++ b/modules/areadlinkat-with-size-tests @@ -4,6 +4,7 @@ tests/macros.h Depends-on: +ignore-value stdbool configure.ac:
--- a/modules/canonicalize-lgpl-tests +++ b/modules/canonicalize-lgpl-tests @@ -4,6 +4,7 @@ tests/macros.h Depends-on: +ignore-value same-inode symlink
--- a/modules/canonicalize-tests +++ b/modules/canonicalize-tests @@ -3,6 +3,7 @@ tests/macros.h Depends-on: +ignore-value progname same-inode symlink
--- a/modules/chown-tests +++ b/modules/chown-tests @@ -6,6 +6,7 @@ tests/macros.h Depends-on: +ignore-value lstat mgetgroups progname
--- a/modules/fdutimensat-tests +++ b/modules/fdutimensat-tests @@ -8,6 +8,7 @@ tests/macros.h Depends-on: +ignore-value progname timespec usleep
--- a/modules/futimens-tests +++ b/modules/futimens-tests @@ -7,6 +7,7 @@ tests/macros.h Depends-on: +ignore-value timespec usleep utimecmp
--- a/modules/lchown-tests +++ b/modules/lchown-tests @@ -6,6 +6,7 @@ tests/macros.h Depends-on: +ignore-value mgetgroups progname usleep
--- a/modules/link-tests +++ b/modules/link-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value errno stdbool sys_stat
--- a/modules/linkat-tests +++ b/modules/linkat-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value areadlink-with-size filenamecat progname
--- a/modules/lstat-tests +++ b/modules/lstat-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value errno same-inode stdbool
--- a/modules/mkdir-tests +++ b/modules/mkdir-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value stdbool symlink
--- a/modules/mkfifo-tests +++ b/modules/mkfifo-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value stdbool symlink
--- a/modules/mkfifoat-tests +++ b/modules/mkfifoat-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value symlink configure.ac:
--- a/modules/mknod-tests +++ b/modules/mknod-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value stdbool symlink
--- a/modules/openat-tests +++ b/modules/openat-tests @@ -16,6 +16,7 @@ tests/macros.h Depends-on: +ignore-value mgetgroups pathmax usleep
--- a/modules/readlink-tests +++ b/modules/readlink-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value stdbool symlink
--- a/modules/remove-tests +++ b/modules/remove-tests @@ -4,6 +4,7 @@ tests/macros.h Depends-on: +ignore-value symlink sys_stat
--- a/modules/rename-tests +++ b/modules/rename-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value errno link stdbool
--- a/modules/renameat-tests +++ b/modules/renameat-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value filenamecat progname xgetcwd
--- a/modules/rmdir-tests +++ b/modules/rmdir-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value stdbool symlink
--- a/modules/symlink-tests +++ b/modules/symlink-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value stdbool configure.ac:
--- a/modules/symlinkat-tests +++ b/modules/symlinkat-tests @@ -6,6 +6,7 @@ tests/macros.h Depends-on: +ignore-value configure.ac:
--- a/modules/unlink-tests +++ b/modules/unlink-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: +ignore-value stdbool symlink unlinkdir
--- a/modules/utimens-tests +++ b/modules/utimens-tests @@ -8,6 +8,7 @@ tests/macros.h Depends-on: +ignore-value symlink timespec usleep
--- a/modules/utimensat-tests +++ b/modules/utimensat-tests @@ -8,6 +8,7 @@ tests/macros.h Depends-on: +ignore-value progname timespec usleep
--- a/tests/test-areadlink-with-size.c +++ b/tests/test-areadlink-with-size.c @@ -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 @@ 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); }
--- a/tests/test-areadlink.c +++ b/tests/test-areadlink.c @@ -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 @@ 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); }
--- a/tests/test-areadlinkat-with-size.c +++ b/tests/test-areadlinkat-with-size.c @@ -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 @@ 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);
--- a/tests/test-areadlinkat.c +++ b/tests/test-areadlinkat.c @@ -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 @@ 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);
--- a/tests/test-canonicalize-lgpl.c +++ b/tests/test-canonicalize-lgpl.c @@ -32,6 +32,7 @@ #include <unistd.h> #include "same-inode.h" +#include "ignore-value.h" #include "macros.h" #define BASE "t-can-lgpl.tmp" @@ -55,7 +56,7 @@ 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);
--- a/tests/test-canonicalize.c +++ b/tests/test-canonicalize.c @@ -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 @@ 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);
--- a/tests/test-chown.c +++ b/tests/test-chown.c @@ -32,6 +32,7 @@ #include "mgetgroups.h" #include "stat-time.h" +#include "ignore-value.h" #include "macros.h" #define BASE "test-chown.t" @@ -42,7 +43,7 @@ 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); }
--- a/tests/test-fchownat.c +++ b/tests/test-fchownat.c @@ -33,6 +33,7 @@ #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 @@ 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);
--- a/tests/test-fdutimensat.c +++ b/tests/test-fdutimensat.c @@ -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 @@ 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);
--- a/tests/test-fstatat.c +++ b/tests/test-fstatat.c @@ -33,6 +33,7 @@ #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 @@ 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);
--- a/tests/test-futimens.c +++ b/tests/test-futimens.c @@ -34,6 +34,7 @@ #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 @@ 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); }
--- a/tests/test-lchown.c +++ b/tests/test-lchown.c @@ -32,6 +32,7 @@ #include "mgetgroups.h" #include "stat-time.h" +#include "ignore-value.h" #include "macros.h" #define BASE "test-lchown.t" @@ -42,7 +43,7 @@ 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); }
--- a/tests/test-link.c +++ b/tests/test-link.c @@ -30,6 +30,7 @@ #include <sys/stat.h> #include <unistd.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-link.t" @@ -40,7 +41,7 @@ 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); }
--- a/tests/test-linkat.c +++ b/tests/test-linkat.c @@ -34,6 +34,7 @@ #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 @@ 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);
--- a/tests/test-lstat.c +++ b/tests/test-lstat.c @@ -35,6 +35,7 @@ #include <unistd.h> #include "same-inode.h" +#include "ignore-value.h" #include "macros.h" #define BASE "test-lstat.t" @@ -53,7 +54,7 @@ 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); }
--- a/tests/test-mkdir.c +++ b/tests/test-mkdir.c @@ -30,6 +30,7 @@ #include <stdlib.h> #include <unistd.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-mkdir.t" @@ -40,7 +41,7 @@ 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); }
--- a/tests/test-mkdirat.c +++ b/tests/test-mkdirat.c @@ -30,6 +30,7 @@ #include <stdlib.h> #include <unistd.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-mkdirat.t" @@ -51,7 +52,7 @@ 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);
--- a/tests/test-mkfifo.c +++ b/tests/test-mkfifo.c @@ -30,6 +30,7 @@ #include <stdlib.h> #include <unistd.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-mkfifo.t" @@ -40,7 +41,7 @@ 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); }
--- a/tests/test-mkfifoat.c +++ b/tests/test-mkfifoat.c @@ -32,6 +32,7 @@ #include <string.h> #include <unistd.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-mkfifoat.t" @@ -72,7 +73,7 @@ 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);
--- a/tests/test-mknod.c +++ b/tests/test-mknod.c @@ -30,6 +30,7 @@ #include <stdlib.h> #include <unistd.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-mknod.t" @@ -47,7 +48,7 @@ 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. */
--- a/tests/test-readlink.c +++ b/tests/test-readlink.c @@ -31,6 +31,7 @@ #include <string.h> #include <sys/stat.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-readlink.t" @@ -41,7 +42,7 @@ 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); }
--- a/tests/test-remove.c +++ b/tests/test-remove.c @@ -30,6 +30,7 @@ #include <sys/stat.h> #include <unistd.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-remove.t" @@ -38,7 +39,7 @@ 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);
--- a/tests/test-rename.c +++ b/tests/test-rename.c @@ -29,6 +29,7 @@ #include <sys/stat.h> #include <unistd.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-rename.t" @@ -39,7 +40,7 @@ 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); }
--- a/tests/test-renameat.c +++ b/tests/test-renameat.c @@ -32,6 +32,7 @@ #include "filenamecat.h" #include "xgetcwd.h" +#include "ignore-value.h" #include "macros.h" #define BASE "test-renameat.t" @@ -57,7 +58,7 @@ 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);
--- a/tests/test-rmdir.c +++ b/tests/test-rmdir.c @@ -30,6 +30,7 @@ #include <stdlib.h> #include <sys/stat.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-rmdir.t" @@ -40,7 +41,7 @@ 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); }
--- a/tests/test-symlink.c +++ b/tests/test-symlink.c @@ -30,6 +30,7 @@ #include <stdlib.h> #include <sys/stat.h> +#include "ignore-value.h" #include "macros.h" #define BASE "test-symlink.t" @@ -40,7 +41,7 @@ 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); }
--- a/tests/test-symlinkat.c +++ b/tests/test-symlinkat.c @@ -32,6 +32,7 @@ #include <string.h> #include <sys/stat.h> +#include "ignore-value.h" #include "macros.h" #ifndef HAVE_SYMLINK @@ -64,7 +65,7 @@ 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);
--- a/tests/test-unlink.c +++ b/tests/test-unlink.c @@ -32,6 +32,7 @@ #include <sys/stat.h> #include "unlinkdir.h" +#include "ignore-value.h" #include "macros.h" #define BASE "test-unlink.t" @@ -42,7 +43,7 @@ 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); }
--- a/tests/test-unlinkat.c +++ b/tests/test-unlinkat.c @@ -31,6 +31,7 @@ #include <sys/stat.h> #include "unlinkdir.h" +#include "ignore-value.h" #include "macros.h" #define BASE "test-unlinkat.t" @@ -62,7 +63,7 @@ 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);
--- a/tests/test-utimens.c +++ b/tests/test-utimens.c @@ -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 @@ 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);
--- a/tests/test-utimensat.c +++ b/tests/test-utimensat.c @@ -35,6 +35,7 @@ #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 @@ 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);