Skip to content
Snippets Groups Projects
Commit 985a0b6b authored by sof's avatar sof
Browse files

[project @ 1997-07-25 21:12:17 by sof]

With -accept-output, create stdout&stderr dump files if does not exist
parent b200c258
No related merge requests found
......@@ -115,17 +115,27 @@ arg: while ($_ = $ARGV[0]) {
}
foreach $out_file ( @PgmStdoutFile ) {
#$Status++ ,
pop(@PgmStdoutFile),
print STDERR "$Pgm: warning: expected-output file missing: $out_file\n"
if ! -f $out_file;
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";
}
}
}
foreach $out_file ( @PgmStderrFile ) {
#$Status++,
pop(@PgmStderrFile),
print STDERR "$Pgm: warning: expected-stderr file missing: $out_file\n"
if ! -f $out_file;
if ( ! -f $out_file ) {
#$Status++;
pop(@PgmStderrFile);
if ( $SaveTmpFile ) {
system("touch $out_file");
} else {
print STDERR "$Pgm: warning: expected-stderr file missing: $out_file\n";
}
}
}
exit 1 if $Status;
......
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