]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix timeout in gdb.tui/completion.exp
authorTom de Vries <tdevries@suse.de>
Tue, 25 Apr 2023 06:33:57 +0000 (08:33 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 25 Apr 2023 06:33:57 +0000 (08:33 +0200)
With test-case gdb.tui/completion.exp, we run into:
...
WARNING: timeout in accept_gdb_output
PASS: gdb.tui/completion.exp: check focus completions
...

The timeout happens in this command:
...
Term::command "layout src"
...
which waits for:
- "(gdb) layout src", and then
- "(gdb) ".

Because the "layout src" command enables the TUI there's just a prompt.

Fix this by using Term::command_no_prompt_prefix.

Tested on x86_64-linux.

gdb/testsuite/gdb.tui/completion.exp

index 85abd4a958b3bb96252b9143d8d4aa6070b0c6be..9cf8dc2ee2545318d7efd9989a3bc76ad5c4e722 100644 (file)
@@ -66,7 +66,7 @@ if {![Term::prepare_for_tui]} {
     return
 }
 
-Term::command "layout src"
+Term::command_no_prompt_prefix "layout src"
 Term::command "complete focus "
 Term::dump_screen
 Term::check_region_contents "check focus completions" 0 17 80 5 \