Skip to content
Snippets Groups Projects
Commit 581bd312 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1997-11-25 11:50:17 by simonm]

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.
parent c25b8acf
No related merge requests found
......@@ -117,12 +117,8 @@ arg: while ($_ = $ARGV[0]) {
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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment