[1/6] Remove test duplicate from gdb.tui

Message ID 20200627212051.6155-2-tom@tromey.com
State New
Headers show
Series
  • Handle UTF-8 in TUI source windows
Related show

Commit Message

Tom Tromey June 27, 2020, 9:20 p.m.
I noticed a duplicated test in gdb.tui.  This patch removes it by
wrapping a test in with_test_prefix.

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

	* gdb.tui/new-layout.exp: Use with_test_prefix.
---
 gdb/testsuite/ChangeLog              |  4 ++++
 gdb/testsuite/gdb.tui/new-layout.exp | 10 ++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

-- 
2.17.2

Patch

diff --git a/gdb/testsuite/gdb.tui/new-layout.exp b/gdb/testsuite/gdb.tui/new-layout.exp
index b4fca674e89..93e11619485 100644
--- a/gdb/testsuite/gdb.tui/new-layout.exp
+++ b/gdb/testsuite/gdb.tui/new-layout.exp
@@ -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