From 581bd3121595f3053ec6fece996a64f762fa7881 Mon Sep 17 00:00:00 2001 From: simonm <unknown> Date: Tue, 25 Nov 1997 11:50:17 +0000 Subject: [PATCH] [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. --- glafp-utils/runstdtest/runstdtest.prl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/glafp-utils/runstdtest/runstdtest.prl b/glafp-utils/runstdtest/runstdtest.prl index 55860fd4d6f2..cb9084bc0d39 100644 --- a/glafp-utils/runstdtest/runstdtest.prl +++ b/glafp-utils/runstdtest/runstdtest.prl @@ -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); } } -- GitLab