From 56a6f86827e433b7dc254308e75dfe01bcb0eb8a Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 1 Dec 2016 16:15:58 -0300 Subject: [PATCH] mesontest: Do not timeout when running inside GDB --- mesontest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesontest.py b/mesontest.py index 65b4159aa..aaba053f6 100755 --- a/mesontest.py +++ b/mesontest.py @@ -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