Remove test duplicate from gdb.tui
authorTom Tromey <tom@tromey.com>
Mon, 28 Sep 2020 02:30:30 +0000 (20:30 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 28 Sep 2020 02:30:30 +0000 (20:30 -0600)
I noticed a duplicated test in gdb.tui.  This patch removes it by
wrapping a test in with_test_prefix.

gdb/testsuite/ChangeLog
2020-09-27  Tom Tromey  <tom@tromey.com>

* gdb.tui/new-layout.exp: Use with_test_prefix.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.tui/new-layout.exp

index 248f039c029eff2b56f4d5e4cff3f4b85d963fbc..db0bdc6d3246b397523edb51773b21305a38128b 100644 (file)
@@ -1,3 +1,7 @@
+2020-09-27  Tom Tromey  <tom@tromey.com>
+
+       * gdb.tui/new-layout.exp: Use with_test_prefix.
+
 2020-09-26  Gareth Rees <grees@undo.io>  (tiny change)
 
        PR python/26586
index 57c3f75e3b41d158ac77727c83a0943625f1f6eb..d736e7f42f4409bd59790fa1617868b92082dcdc 100644 (file)
@@ -24,10 +24,12 @@ if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
 }
 
 # Make sure TUI is supported before continuing.
-Term::clean_restart 24 80 $testfile
-if {![Term::enter_tui]} {
-    unsupported "TUI not supported"
-    return
+with_test_prefix "initial check" {
+    Term::clean_restart 24 80 $testfile
+    if {![Term::enter_tui]} {
+       unsupported "TUI not supported"
+       return
+    }
 }
 
 Term::clean_restart 24 80 $testfile