This is helpful while debugging the tests: copy the output from test
(both stdout and stderr) to the stdout of the parent process.
buf[r] = '\0';
bufmatch[r] = '\0';
+
+ if (t->print_outputs)
+ printf("%s: %s\n",
+ fd_match == fd_matchout ? "STDOUT:" : "STDERR:",
+ buf);
+
if (!streq(buf, bufmatch)) {
ERR("Outputs do not match on %s:\n",
fd_match == fd_matchout ? "STDOUT" : "STDERR");
const struct keyval *env_vars;
bool need_spawn;
bool expected_fail;
+ bool print_outputs;
} __attribute__((aligned(8)));