Skip to content

Commit d577d40

Browse files
authored
Merge pull request #1445 from smowton/smowton/feature/test-pl-interrupt
Test.pl: exit if a test is interrupted
2 parents 478dc8a + b01ff65 commit d577d40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

regression/test.pl

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ ($$$$$)
4545
system "echo EXIT=$exit_value >>'$name/$output'";
4646
system "echo SIGNAL=$signal_num >>'$name/$output'";
4747

48+
if($signal_num == 2) {
49+
print "\nProgram under test interrupted; stopping\n";
50+
exit 1;
51+
}
52+
4853
return $failed;
4954
}
5055

0 commit comments

Comments
 (0)