mesontest: Do not timeout when running inside GDB

This commit is contained in:
Thibault Saunier 2016-12-01 16:15:58 -03:00
parent 6203e3ae34
commit 56a6f86827
1 changed files with 2 additions and 1 deletions

View File

@ -199,8 +199,9 @@ class TestHarness:
cwd=test.workdir,
preexec_fn=setsid)
timed_out = False
timeout = test.timeout if not self.options.gdb else None
try:
(stdo, stde) = p.communicate(timeout=test.timeout)
(stdo, stde) = p.communicate(timeout=timeout)
except subprocess.TimeoutExpired:
timed_out = True
# Python does not provide multiplatform support for