[Lldb-commits] [lldb] r242699 - Enable timeout on Windows
Ying Chen
chying at google.com
Mon Jul 20 13:04:22 PDT 2015
Author: chying
Date: Mon Jul 20 15:04:22 2015
New Revision: 242699
URL: http://llvm.org/viewvc/llvm-project?rev=242699&view=rev
Log:
Enable timeout on Windows
Summary: - launch dotest with gtimeout if found on Windows
Reviewers: chaoren
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11368
Modified:
lldb/trunk/test/dosep.py
Modified: lldb/trunk/test/dosep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dosep.py?rev=242699&r1=242698&r2=242699&view=diff
==============================================================================
--- lldb/trunk/test/dosep.py (original)
+++ lldb/trunk/test/dosep.py Mon Jul 20 15:04:22 2015
@@ -45,13 +45,12 @@ from optparse import OptionParser
def get_timeout_command():
"""Search for a suitable timeout command."""
- if sys.platform.startswith("win32"):
- return None
- try:
- subprocess.call("timeout", stderr=subprocess.PIPE)
- return "timeout"
- except OSError:
- pass
+ if not sys.platform.startswith("win32"):
+ try:
+ subprocess.call("timeout", stderr=subprocess.PIPE)
+ return "timeout"
+ except OSError:
+ pass
try:
subprocess.call("gtimeout", stderr=subprocess.PIPE)
return "gtimeout"
More information about the lldb-commits
mailing list