]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
execute-tests: pacify compiler
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Apr 2021 17:13:50 +0000 (10:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Apr 2021 18:10:48 +0000 (11:10 -0700)
* 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.

ChangeLog
tests/test-execute-main.c

index d2ea4e5093cd05c818257d7069883588f9198ce8..3aaee32bff8c04e708b817b95b517e801c67131e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 944dcd1ee213c86bf76563945da0d31942181a71..a6a9fe4069d9ddee8e6beee98bda6df462e8f48a 100644 (file)
@@ -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);