Allow user-defined exit codes: fixed bug that was preventing this from working.

This commit is contained in:
pschwartau%netscape.com 2001-06-08 22:05:32 +00:00
Родитель 30e6485dcd
Коммит 11b72244c8
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -215,8 +215,8 @@ sub execute_tests {
# watch for testcase to proclaim what exit code it expects to # watch for testcase to proclaim what exit code it expects to
# produce (0 by default) # produce (0 by default)
if ($line =~ /expect(ed)?\s*exit\s*code\s*\:?\s*(\n+)/i) { if ($line =~ /expect(ed)?\s*exit\s*code\s*\:?\s*(\d+)/i) {
$expected_exit = $1; $expected_exit = $2;
&dd ("Test case expects exit code $expected_exit"); &dd ("Test case expects exit code $expected_exit");
} }