Make "file" clear TUI source window
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.tui / main.exp
index 26ca0046fcc8be888780635a37961657d9eafb9a..ae2393e6e98cba5e32821c80c7da533db26c6f14 100644 (file)
@@ -26,9 +26,16 @@ if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
 # Note: don't pass the executable here
 Term::clean_restart 24 80
 
+# Later on we'd like to avoid having to answer a question.
+gdb_test_no_output "set interactive-mode off"
+
 if {![Term::enter_tui]} {
     unsupported "TUI not supported"
 }
 
 Term::command "file [standard_output_file $testfile]"
 Term::check_contents "show main after file" "\\|.*21 *return 0"
+
+# Ensure that "file" clears the source window.
+Term::command "file"
+Term::check_contents "file clears window" "No Source Available"
This page took 0.028096 seconds and 4 git commands to generate.