diff options
author | Tom de Vries <tdevries@suse.de> | 2023-06-07 11:36:19 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-06-07 11:36:19 +0200 |
commit | d033023bc4ce9e61fe47172ee451cce2b96cdc98 (patch) | |
tree | d4b41c27722512cea7981757b873fe853e9df741 | |
parent | d791a1b6ae0f0ae41413d48fdf68db61977de5ec (diff) | |
download | fsf-binutils-gdb-d033023bc4ce9e61fe47172ee451cce2b96cdc98.zip fsf-binutils-gdb-d033023bc4ce9e61fe47172ee451cce2b96cdc98.tar.gz fsf-binutils-gdb-d033023bc4ce9e61fe47172ee451cce2b96cdc98.tar.bz2 |
[gdb/testsuite] Add missing wait in gdb.python/tui-window-disabled.exp
While working on PR tui/30526, I noticed a bug in test-case
gdb.python/tui-window-disabled.exp.
Here we send "tui enable" to gdb, but don't wait for it to arrive before
checking for a window box:
...
send_gdb "tui enable\n"
Term::check_box "check for python window" 0 0 80 16
...
Fix this by waiting for the prompt to be issued in TUI before doing the check.
Tested on x86_64-linux.
-rw-r--r-- | gdb/testsuite/gdb.python/tui-window-disabled.exp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/tui-window-disabled.exp b/gdb/testsuite/gdb.python/tui-window-disabled.exp index bee58a8..fc69b2b 100644 --- a/gdb/testsuite/gdb.python/tui-window-disabled.exp +++ b/gdb/testsuite/gdb.python/tui-window-disabled.exp @@ -186,7 +186,10 @@ proc run_test { cleanup_properly } { Term::command "layout test" Term::command "tui disable" + send_gdb "tui enable\n" + gdb_assert { [Term::wait_for "^$::gdb_prompt tui disable"] } "TUI renabled" + Term::check_box "check for python window" 0 0 80 16 } |