summaryrefslogtreecommitdiff
path: root/scripts/Expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Expect.py')
-rwxr-xr-xscripts/Expect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Expect.py b/scripts/Expect.py
index 872ea250078..0f104ccb56f 100755
--- a/scripts/Expect.py
+++ b/scripts/Expect.py
@@ -454,7 +454,7 @@ class Expect (object):
self.exitstatus = self.p.wait()
# A Windows application killed with CTRL_BREAK. Fudge the exit status.
- if win32 and self.killed is not None:
+ if win32 and self.exitstatus != 0 and self.killed is not None:
self.exitstatus = -self.killed
self.p = None
self.r.join()