diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-04-21 10:13:50 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-04-21 11:10:48 -0700 |
commit | 84b9d95e6a8f847da287c3bcd028b74a12e2f36d (patch) | |
tree | 9ac8b74940b4448fa44d3494013c95791b38da8e | |
parent | 591f00666450e5e70514d457846af2c8d301af9b (diff) | |
download | gnulib-84b9d95e6a8f847da287c3bcd028b74a12e2f36d.tar.gz gnulib-84b9d95e6a8f847da287c3bcd028b74a12e2f36d.tar.bz2 |
execute-tests: pacify compiler
* tests/test-execute-main.c (main): Use 0x7DEADBEE rather than
0xDEADBEEF for nonces, to avoid provoking AIX XLC compiler warning
that the latter is out of int range.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | tests/test-execute-main.c | 6 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2021-04-21 Paul Eggert <eggert@cs.ucla.edu> + + execute-tests: pacify compiler + * tests/test-execute-main.c (main): Use 0x7DEADBEE rather than + 0xDEADBEEF for nonces, to avoid provoking AIX XLC compiler warning + that the latter is out of int range. + 2021-04-20 Paul Eggert <eggert@cs.ucla.edu> malloc-gnu-tests, etc.: use volatile for clang diff --git a/tests/test-execute-main.c b/tests/test-execute-main.c index 944dcd1ee2..a6a9fe4069 100644 --- a/tests/test-execute-main.c +++ b/tests/test-execute-main.c @@ -132,7 +132,7 @@ main (int argc, char *argv[]) { /* Check SIGPIPE handling with ignore_sigpipe = false. */ const char *prog_argv[3] = { prog_path, "3", NULL }; - int termsig = 0xDEADBEEF; + int termsig = 0x7DEADBEE; int ret = execute (progname, prog_argv[0], prog_argv, NULL, false, false, false, false, true, false, &termsig); ASSERT (ret == 127); @@ -145,7 +145,7 @@ main (int argc, char *argv[]) { /* Check SIGPIPE handling with ignore_sigpipe = true. */ const char *prog_argv[3] = { prog_path, "4", NULL }; - int termsig = 0xDEADBEEF; + int termsig = 0x7DEADBEE; int ret = execute (progname, prog_argv[0], prog_argv, NULL, true, false, false, false, true, false, &termsig); ASSERT (ret == 0); @@ -157,7 +157,7 @@ main (int argc, char *argv[]) { /* Check other signal. */ const char *prog_argv[3] = { prog_path, "5", NULL }; - int termsig = 0xDEADBEEF; + int termsig = 0x7DEADBEE; int ret = execute (progname, prog_argv[0], prog_argv, NULL, false, false, false, false, true, false, &termsig); ASSERT (ret == 127); |