mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Fix exit code detection.
This commit is contained in:
parent
2266405677
commit
49050135c0
@ -152,16 +152,9 @@ sub execute_tests {
|
||||
@output = <OUTPUT>;
|
||||
close (OUTPUT);
|
||||
|
||||
if ($os_type ne "WIN") {
|
||||
# unix systems have signal information in the lower 8 bits
|
||||
$got_exit = ($? >> 8);
|
||||
$exit_signal = ($? & 255);
|
||||
} else {
|
||||
# windows doesn't have signal information at all, $? is the exit code
|
||||
# period.
|
||||
$got_exit = $?;
|
||||
$exit_signal = 0;
|
||||
}
|
||||
# signal information in the lower 8 bits, exit code above that
|
||||
$got_exit = ($? >> 8);
|
||||
$exit_signal = ($? & 255);
|
||||
|
||||
$failure_lines = "";
|
||||
$bug_line = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user