[gdb/testsuite] Fix gdb.tui/completion.exp for local-remote-host-notty
authorTom de Vries <tdevries@suse.de>
Mon, 13 Mar 2023 16:20:09 +0000 (17:20 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 13 Mar 2023 16:20:09 +0000 (17:20 +0100)
commit0020d62fb3cd384d5f3d23f1877d0709a07a7d2b
tree582d55ff027b974c59eeb1aa22260472d71f6ad6
parente1b8f529d3246b031352882c3eb85fa2ccedd02e
[gdb/testsuite] Fix gdb.tui/completion.exp for local-remote-host-notty

When running test-case gdb.tui/completion.exp with host board
local-remote-host-notty and target board native-gdbserver, I get:
...
FAIL: gdb.tui/completion.exp: completion of layout names: \
  tab completion (timeout)
...

The test-case contains a few tests that do tab completion, which requires
readline, which is unavailable with host board local-remote-host-notty.

Fix this by adding the missing check for readline_is_used.

Tested on x86_64-linux.
gdb/testsuite/gdb.tui/completion.exp