Remove warning when testing for timeout command.

llvm-svn: 238522
This commit is contained in:
Chaoren Lin 2015-05-28 23:00:10 +00:00
parent 60b640bb80
commit 45c17ff6c2
1 changed files with 2 additions and 2 deletions

View File

@ -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