aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debug/testlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index ba6057d..baa7783 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -796,6 +796,7 @@ class Gdb:
timeout = max(1, ops) * self.timeout
self.active_child.sendline(command)
try:
+ self.active_child.expect(re.escape(command), timeout=timeout)
self.active_child.expect("\n", timeout=timeout)
except pexpect.exceptions.TIMEOUT as exc:
raise CommandSendTimeout(command) from exc