[Lldb-commits] [PATCH] D11368: Enable timeout on Windows

Ying Chen chying at google.com
Mon Jul 20 13:01:20 PDT 2015


chying created this revision.
chying added a reviewer: chaoren.
chying added a subscriber: lldb-commits.

- launch dotest with gtimeout if found on Windows

http://reviews.llvm.org/D11368

Files:
  test/dosep.py

Index: test/dosep.py
===================================================================
--- test/dosep.py
+++ test/dosep.py
@@ -45,13 +45,12 @@
 
 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"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11368.30184.patch
Type: text/x-patch
Size: 714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150720/a00a6217/attachment.bin>


More information about the lldb-commits mailing list