[pushed,0/8,gdb/testsuite] Fix remote host issues in TUI tests

Message ID 20230313162051.488-1-tdevries@suse.de
Headers
Series Fix remote host issues in TUI tests |

Message

Tom de Vries March 13, 2023, 4:20 p.m. UTC
  I ran the gdb.tui/*.exp and gdb.pyton/tui-*.exp test-cases with various
host/target boards from gdb/testsuite/boards and fixed issues, most of which
had to do with remote host testing.

Results after the fixes:
...
 $ ./test-all.sh
 HOST/TARGET: local
 # of expected passes            724
 HOST: local, TARGET: native-gdbserver
 # of expected passes            709
 # of unsupported tests          2
 HOST: local, TARGET: native-extended-gdbserver
 # of expected passes            717
 # of unsupported tests          1
 HOST: local, TARGET: native-stdio-gdbserver
 # of expected passes            709
 # of unsupported tests          2
 HOST: local, TARGET: remote-gdbserver-on-localhost
 # of expected passes            709
 # of unsupported tests          2
 HOST: local, TARGET: remote-stdio-gdbserver
 # of expected passes            709
 # of unsupported tests          2
 HOST: local, TARGET: remote-stdio-gdbserver-remotedir
 # of expected passes            709
 # of unsupported tests          2
 HOST: local-remote-host-notty, TARGET: native-gdbserver
 # of expected passes            336
 # of unsupported tests          33
 HOST: local-remote-host-notty, TARGET: native-extended-gdbserver
 # of expected passes            337
 # of unsupported tests          33
 HOST: local-remote-host-notty, TARGET: native-stdio-gdbserver
 # of expected passes            336
 # of unsupported tests          33
 HOST: local-remote-host-notty, TARGET: remote-gdbserver-on-localhost
 # of expected passes            336
 # of unsupported tests          33
 HOST: local-remote-host-notty, TARGET: remote-stdio-gdbserver
 # of expected passes            336
 # of unsupported tests          33
 HOST: local-remote-host-notty, TARGET: remote-stdio-gdbserver-remotedir
 # of expected passes            336
 # of unsupported tests          33
 HOST: local-remote-host, TARGET: native-gdbserver
 # of expected passes            340
 # of unsupported tests          33
 HOST: local-remote-host, TARGET: native-extended-gdbserver
 # of expected passes            341
 # of unsupported tests          33
 HOST: local-remote-host, TARGET: native-stdio-gdbserver
 # of expected passes            340
 # of unsupported tests          33
 HOST: local-remote-host, TARGET: remote-gdbserver-on-localhost
 # of expected passes            340
 # of unsupported tests          33
 HOST: local-remote-host, TARGET: remote-stdio-gdbserver
 # of expected passes            340
 # of unsupported tests          33
 HOST: local-remote-host, TARGET: remote-stdio-gdbserver-remotedir
 # of expected passes            340
 # of unsupported tests          33
 HOST/TARGET: local-remote-host-native
 # of expected passes            333
 # of unsupported tests          31
 # of untested testcases         1
...

Tested on x86_64-linux.

Tom de Vries (8):
  [gdb/testsuite] Fix untested message in gdb.tui/corefile-run.exp
  [gdb/testsuite] Handle USE_TUI in gdb.tui/corefile-run.exp
  [gdb/testsuite] Require ![is_remote host] for TUI
  [gdb/testsuite] Fix gdb.tui/tui-nl-filtered-output.exp for remote host
  [gdb/testsuite] Fix gdb.tui/tui-layout.exp for remote host
  [gdb/testsuite] Fix gdb.tui/completion.exp for local-remote-host-notty
  [gdb/testsuite] Fix gdb.python/tui-window.exp for remote host
  [gdb/testsuite] Fix gdb.python/tui-window-factory.exp for remote host

 .../gdb.python/tui-window-factory.exp         |  5 +++-
 gdb/testsuite/gdb.python/tui-window.exp       |  1 +
 gdb/testsuite/gdb.tui/completion.exp          | 13 ++++++----
 gdb/testsuite/gdb.tui/corefile-run.exp        | 24 ++++++++++++-------
 gdb/testsuite/gdb.tui/tui-layout.exp          |  4 ++++
 .../gdb.tui/tui-nl-filtered-output.exp        |  5 +++-
 gdb/testsuite/lib/gdb.exp                     | 22 ++++++++++++++++-
 gdb/testsuite/lib/tuiterm.exp                 |  8 +++++++
 8 files changed, 66 insertions(+), 16 deletions(-)


base-commit: 275589d9a0fda6fe898aae678588bb3841d3fed1