From 5f278258ccae6a666c72de709a3171975fbaeb05 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 27 Sep 2020 20:30:30 -0600 Subject: [PATCH] Remove test duplicate from gdb.tui 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 * 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(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 248f039c029..db0bdc6d324 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-09-27 Tom Tromey + + * gdb.tui/new-layout.exp: Use with_test_prefix. + 2020-09-26 Gareth Rees (tiny change) PR python/26586 diff --git a/gdb/testsuite/gdb.tui/new-layout.exp b/gdb/testsuite/gdb.tui/new-layout.exp index 57c3f75e3b4..d736e7f42f4 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 -- 2.30.2