mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 996987 - Always allow exit code 0 when checking for exit codes in Windows, because Windows. (r=terrence)
This commit is contained in:
parent
40069984a3
commit
2f93a8fa8c
@ -374,6 +374,12 @@ def check_output(out, err, rc, timed_out, test):
|
||||
return False
|
||||
|
||||
if rc != test.expect_status:
|
||||
# Tests which expect a timeout check for exit code 6.
|
||||
# Sometimes 0 is returned on Windows for unknown reasons.
|
||||
# See bug 899697.
|
||||
if sys.platform in ['win32', 'cygwin'] and rc == 0:
|
||||
return True
|
||||
|
||||
# Allow a non-zero exit code if we want to allow OOM, but only if we
|
||||
# actually got OOM.
|
||||
return test.allow_oom and 'out of memory' in err and 'Assertion failure' not in err
|
||||
|
Loading…
Reference in New Issue
Block a user