Skip to content
Snippets Groups Projects
Commit 7fee66ab authored by Tom de Vries's avatar Tom de Vries
Browse files

[gdb/testsuite] Fix gdb.python/tui-window-factory.exp for remote host

When running gdb.python/tui-window.exp with host board
local-remote-host-notty and target board native-gdbserver, I get:
...
FAIL: gdb.python/tui-window-factory.exp: msg_2: \
  check test_window box (box check: ul corner is l, not +)
...

The problem is that the result of Term::prepare_for_tui is not checked.

Fix this by adding the missing check.

Tested on x86_64-linux.
parent 1cdf05cd
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,10 @@ set pyfile [gdb_remote_download host \ ...@@ -32,7 +32,10 @@ set pyfile [gdb_remote_download host \
${srcdir}/${subdir}/${gdb_test_file_name}.py] ${srcdir}/${subdir}/${gdb_test_file_name}.py]
Term::clean_restart 24 80 Term::clean_restart 24 80
Term::prepare_for_tui if { ![Term::prepare_for_tui] } {
unsupported "TUI not supported"
return
}
gdb_test "source ${pyfile}" "Python script imported" \ gdb_test "source ${pyfile}" "Python script imported" \
"import python scripts" "import python scripts"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment