Use a big timeout when running gdb interactively and a typo fix.

pull/832/head
Jussi Pakkanen 8 years ago
parent 60716fcd6d
commit 22aedda6d0
  1. 9
      mesontest.py

@ -227,7 +227,10 @@ class TestHarness:
cwd=test.workdir,
preexec_fn=setsid)
timed_out = False
timeout = test.timeout * self.options.timeout_multiplier
if test.timeout is None:
timeout = None
else:
timeout = test.timeout * self.options.timeout_multiplier
try:
(stdo, stde) = p.communicate(timeout=timeout)
except subprocess.TimeoutExpired:
@ -424,7 +427,9 @@ class TestHarness:
if len(t.cmd_args) > 0:
wrap.append('--args')
if self.options.repeat > 1:
wrap.append('-ex', 'run', '-ex', 'quit')
# The user wants to debug interactively, so no timeout.
t.timeout = None
wrap += ['-ex', 'run', '-ex', 'quit']
res = self.run_single_test(wrap, t)
else:

Loading…
Cancel
Save