diff options
author | Alicia Boya GarcĂa <ntrrgc@gmail.com> | 2018-05-25 12:06:22 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2018-05-25 12:59:40 +0200 |
commit | bfa143caa92674b5c3d44e5c73cf05db45988a84 (patch) | |
tree | cf1f0139d27083caf32c281e1cb4264f0f3c517b | |
parent | 2c32ccd7a78c1fdc95819332f5c71f572ae0a41e (diff) |
gst-validate-launcher: disable timeouts when debugging in gdb interactively
An interactive debugging session can be going for a long time, we don't
want any timeouts in that case.
https://bugzilla.gnome.org/show_bug.cgi?id=796397
-rw-r--r-- | validate/launcher/baseclasses.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/validate/launcher/baseclasses.py b/validate/launcher/baseclasses.py index a1d209c..bac3336 100644 --- a/validate/launcher/baseclasses.py +++ b/validate/launcher/baseclasses.py @@ -385,6 +385,11 @@ class Test(Loggable): if self.hard_timeout is not None: self.hard_timeout *= GDB_TIMEOUT_FACTOR self.timeout *= GDB_TIMEOUT_FACTOR + + if not self.options.gdb_non_stop: + self.timeout = sys.maxsize + self.hard_timeout = sys.maxsize + args = ["gdb"] if self.options.gdb_non_stop: args += ["-ex", "run", "-ex", "backtrace", "-ex", "quit"] |