Remove warning when testing for timeout command.
authorChaoren Lin <chaorenl@google.com>
Thu, 28 May 2015 23:00:10 +0000 (23:00 +0000)
committerChaoren Lin <chaorenl@google.com>
Thu, 28 May 2015 23:00:10 +0000 (23:00 +0000)
llvm-svn: 238522

lldb/test/dosep.py

index b8a017e..dedc609 100755 (executable)
@@ -48,12 +48,12 @@ def get_timeout_command():
     if sys.platform.startswith("win32"):
         return None
     try:
-        subprocess.call("timeout")
+        subprocess.call("timeout", stderr=subprocess.PIPE)
         return "timeout"
     except OSError:
         pass
     try:
-        subprocess.call("gtimeout")
+        subprocess.call("gtimeout", stderr=subprocess.PIPE)
         return "gtimeout"
     except OSError:
         pass