+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
{
/* 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);
{
/* 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);
{
/* 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);