зеркало из https://github.com/mozilla/gecko-dev.git
Allow user-defined exit codes: fixed bug that was preventing this from working.
This commit is contained in:
Родитель
30e6485dcd
Коммит
11b72244c8
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче