Bug 759020 - Prevent jsreftest suite from swallowing crashes; r=dmandelin

--HG--
extra : rebase_source : fbbaec5c83e9ea5cbfba6833b96c73e7cfd8adf6
This commit is contained in:
Terrence Cole 2012-05-31 16:34:40 -07:00
parent ca212316e1
commit 7130c13c89

View File

@ -154,12 +154,16 @@ def reap_zombies(tasks, results, timeout):
os.close(ended.stdout)
os.close(ended.stderr)
returncode = os.WEXITSTATUS(status)
if os.WIFSIGNALED(status):
returncode = -os.WTERMSIG(status)
out = TestOutput(
ended.test,
ended.cmd,
''.join(ended.out),
''.join(ended.err),
os.WEXITSTATUS(status),
returncode,
(datetime.now() - ended.start).total_seconds(),
timed_out(ended, timeout))
results.push(out)