Change test framework, so unit tests won't hang on exit in case of failure.

Approved by:	mentors (implicit)
This commit is contained in:
Michael Gmelin 2014-09-08 22:41:01 +00:00
parent 07dee5dd02
commit d24362f48b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367709

View file

@ -0,0 +1,11 @@
--- scripts/Expect.py.orig 2013-03-11 15:19:47.000000000 +0000
+++ scripts/Expect.py 2014-09-08 22:32:43.000000000 +0000
@@ -461,7 +461,7 @@
if win32 and self.exitstatus != 0 and self.killed is not None:
self.exitstatus = -self.killed
self.p = None
- self.r.join()
+ self.r.join(timeout)
# Simulate a match on EOF
self.buf = self.r.getbuf()
self.before = self.buf