Allow user-defined exit codes: fixed bug that was preventing this from working.
git-svn-id: svn://10.0.0.236/trunk@96748 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3a117dc62a
commit
2b6e776d0b
@ -215,8 +215,8 @@ sub execute_tests {
|
||||
|
||||
# watch for testcase to proclaim what exit code it expects to
|
||||
# produce (0 by default)
|
||||
if ($line =~ /expect(ed)?\s*exit\s*code\s*\:?\s*(\n+)/i) {
|
||||
$expected_exit = $1;
|
||||
if ($line =~ /expect(ed)?\s*exit\s*code\s*\:?\s*(\d+)/i) {
|
||||
$expected_exit = $2;
|
||||
&dd ("Test case expects exit code $expected_exit");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user