Skip to content

Commit 94a3b75

Browse files
committed
Make EXIT and SIGNAL patterns a requirement in test specifications
This will make sure regression tests do not spuriously pass despite, e.g., failing an invariant.
1 parent 0b53ff7 commit 94a3b75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

regression/test.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ ($)
6464
close FILE;
6565

6666
chomp @data;
67+
grep { /^\^EXIT=[\(\|\d]*\d+\)?\$$/ } @data or die "$fname: Missing EXIT test\n";
68+
grep { /^\^SIGNAL=\d+\$$/ } @data or die "$fname: Missing SIGNAL test\n";
6769
return @data;
6870
}
6971

0 commit comments

Comments
 (0)