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