Don't try to generate stdout files if using -accept-output. It didn't
work anyway: a call to pop had stomped on the variable containing the
filename before it was used, setting it to the empty string. The call
to touch then failed with a syntax error.
This behaviour seems more useful: sometimes you really don't want to
check the stdout and/or stderr, so you just don't create the file.
foreach $out_file ( @PgmStdoutFile ) {
if ( ! -f $out_file ) {
#$Status++;
- pop(@PgmStdoutFile);
- if ( $SaveTmpFile ) {
- system("touch $out_file");
- } else {
- print STDERR "$Pgm: warning: expected-stdout file missing: $out_file\n";
- }
+ print STDERR "$Pgm: warning: expected-stdout file missing: $out_file\n";
+ pop(@PgmStdoutFile);
}
}