aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-09-27 20:30:30 -0600
committerTom Tromey <tom@tromey.com>2020-09-27 20:30:30 -0600
commit5f278258ccae6a666c72de709a3171975fbaeb05 (patch)
tree3981141c97bab01df14099f1318e785c574a9b4d /gdb
parent12cf8b93da0ae155643d262235486fde5af72a80 (diff)
downloadgdb-5f278258ccae6a666c72de709a3171975fbaeb05.zip
gdb-5f278258ccae6a666c72de709a3171975fbaeb05.tar.gz
gdb-5f278258ccae6a666c72de709a3171975fbaeb05.tar.bz2
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 <tom@tromey.com> * gdb.tui/new-layout.exp: Use with_test_prefix.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.tui/new-layout.exp10
2 files changed, 10 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 248f039..db0bdc6 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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
diff --git a/gdb/testsuite/gdb.tui/new-layout.exp b/gdb/testsuite/gdb.tui/new-layout.exp
index 57c3f75..d736e7f 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