+2020-06-17 Sandra Loosemore <sandra@codesourcery.com>
+
+ Fix TUI support checks in gdb.tui tests.
+
+ * gdb.tui/basic.exp: Skip test when TUI is unsupported, don't
+ just say UNSUPPORTED.
+ * gdb.tui/corefile-run.exp: Likewise.
+ * gdb.tui/empty.exp: Likewise.
+ * gdb.tui/list-before.exp: Likewise.
+ * gdb.tui/list.exp: Likewise.
+ * gdb.tui/main.exp: Likewise.
+ * gdb.tui/regs.exp: Likewise.
+ * gdb.tui/resize.exp: Likewise.
+ * gdb.tui/tui-layout-asm-short-prog.exp: Likewise.
+ * gdb.tui/tui-layout-asm.exp: Likewise.
+ * gdb.tui/tui-missing-src.exp: Likewise.
+ * gdb.tui/winheight.exp: Likewise.
+ * gdb.tui/new-layout.exp: Likewise. Also move check earlier.
+
2020-06-17 Sandra Loosemore <sandra@codesourcery.com>
Fix TCL error in gdb.python/py-format-string.exp.
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
set text [Term::get_all_lines]
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
set text [Term::get_all_lines]
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
# Each entry describes a layout. It has these items:
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
Term::check_contents "initial source listing" "21 *return 0"
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
Term::check_contents "initial source listing" "21 *return 0"
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
Term::command "file [standard_output_file $testfile]"
return -1
}
+# Make sure TUI is supported before continuing.
+Term::clean_restart 24 80 $testfile
+if {![Term::enter_tui]} {
+ unsupported "TUI not supported"
+ return
+}
+
Term::clean_restart 24 80 $testfile
gdb_test "tui new-layout" \
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
set text [Term::get_all_lines]
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
Term::check_contents "source at startup" "\\|.*21 *return 0"
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
Term::check_contents "source at startup" "\\|.*21 *return 0"
Term::clean_restart 24 80 $testfile
if {![Term::prepare_for_tui]} {
unsupported "TUI not supported"
+ return
}
# This puts us into TUI mode, and should display the ASM window.
Term::clean_restart 24 80 $testfile
if {![Term::prepare_for_tui]} {
unsupported "TUI not supported"
+ return
}
# This puts us into TUI mode, and should display the ASM window.
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
# There must exist a source layout with the size 80x15 and
# there should be nothing in it.
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"
+ return
}
Term::check_box "source box" 0 0 80 15