[gdb/testsuite] Fix gdb.python/py-completion.exp
authorTom de Vries <tdevries@suse.de>
Fri, 10 Mar 2023 15:34:04 +0000 (16:34 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 10 Mar 2023 15:34:04 +0000 (16:34 +0100)
commit7f3294a9b784ad011624cace3a1e81e32f273030
treeafe343ecc4c9976421db6527172ef02e94b674e8
parent254de2628f5e6da0c0d48eb86f40ece3d96b7b75
[gdb/testsuite] Fix gdb.python/py-completion.exp

With test-case gdb.python/py-completion.exp and target board
native-extended-gdbserver I get this warning:
...
(gdb) PASS: gdb.python/py-completion.exp: discard #2
completefilecommandcond $outputs/gdb.python/py-completion/py-completion-t^G\
  PASS: gdb.python/py-completion.exp: completefilecommandcond completion
Remote debugging from host ::1, port 53346^M
monitor exit^M
not implemented^M
(gdb) WARNING: Timed out waiting for EOF in server after monitor exit
...

Fix this by adding the missing "discard #3", such that we have instead:
...
(gdb) PASS: gdb.python/py-completion.exp: discard #2
completefilecommandcond $outputs/gdb.python/py-completion/py-completion-t^G\
  PASS: gdb.python/py-completion.exp: completefilecommandcond completion
 ^M
not implemented^M
(gdb) PASS: gdb.python/py-completion.exp: discard #3
Remote debugging from host ::1, port 36278^M
monitor exit^M
(gdb)
...

Tested on x86_64-linux.
gdb/testsuite/gdb.python/py-completion.exp