[gdb/testsuite] Consume output asap in gdb.server/multi-ui-errors.exp
authorTom de Vries <tdevries@suse.de>
Sat, 29 Oct 2022 07:43:32 +0000 (09:43 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 29 Oct 2022 07:43:32 +0000 (09:43 +0200)
commit64ba0c58a79bdec307b722cc09aab724d34ba28b
treeeb4f88d1838c5985cacb33ee1c63a701cac9c1b2
parent488ed354c8514ba93286f8676a64b7841bb1fda4
[gdb/testsuite] Consume output asap in gdb.server/multi-ui-errors.exp

With test-case gdb.server/multi-ui-errors.exp we see:
...
(gdb) PASS: multi-ui-errors.exp: main UI, prompt after gdbserver dies
continue^M
Continuing.^M
echo^M
(gdb) PASS: multi-ui-errors.exp: extra UI, prompt after gdbserver dies
...

The continue is issued earlier in the test-case, but the output has not been
consumed, which makes it show up much later.

Consume the continue output asap, to make it clear when the continue is issued:
...
(gdb) PASS: gdb.server/multi-ui-errors.exp: connect to gdbserver
continue^M
Continuing.^M
PASS: gdb.server/multi-ui-errors.exp: continue - extra UI
...

Tested on x86_64-linux.
gdb/testsuite/gdb.server/multi-ui-errors.exp