validate:launcher: Timeout if running gdb takes too much time

This commit is contained in:
Thibault Saunier 2016-11-14 18:41:34 -03:00
parent f5828b2b5c
commit 8bd0cb13e8

View file

@ -301,7 +301,7 @@ class BackTraceGenerator(Loggable):
try:
return subprocess.check_output(
gdb, stderr=subprocess.STDOUT).decode()
gdb, stderr=subprocess.STDOUT, timeout=30).decode()
except Exception as e:
return "Could not run `gdb` on process (pid: %d):\n%s" % (
test.process.pid, e)