Skip to content

Commit ba16006

Browse files
committed
Do not use shell built-ins
As we no longer use sequences of commands in the Makefile, AppVeyor's make does not actually invoke a shell to call test.pl. Hence invoking "echo" from within test.pl fails. From the `make` documentation: "When it is time to execute commands to update a target, they are executed by making a new subshell for each line. (In practice, make may take shortcuts that do not affect the results.)" It seems these "shortcuts" are being taken by AppVeyor's make.
1 parent 96e169a commit ba16006

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

regression/test.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ ($$$$$)
4242
}
4343
}
4444

45-
system "echo EXIT=$exit_value >>'$name/$output'";
46-
system "echo SIGNAL=$signal_num >>'$name/$output'";
45+
open my $FH, ">>$name/$output";
46+
print $FH "EXIT=$exit_value\n";
47+
print $FH "SIGNAL=$signal_num\n";
48+
close $FH;
4749

4850
if($signal_num == 2) {
4951
print "\nProgram under test interrupted; stopping\n";

0 commit comments

Comments
 (0)