This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 3/8] Add "layout split" test
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Sun, 21 Jul 2019 12:49:05 -0600
- Subject: [PATCH 3/8] Add "layout split" test
- References: <20190721184910.26679-1-tom@tromey.com>
This adds a test of "layout split" to the TUI test suite.
gdb/testsuite/ChangeLog
2019-07-21 Tom Tromey <tom@tromey.com>
* gdb.tui/basic.exp: Add "layout split" test.
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.tui/basic.exp | 14 ++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp
index 1eeeaa77606..086a6b7d820 100644
--- a/gdb/testsuite/gdb.tui/basic.exp
+++ b/gdb/testsuite/gdb.tui/basic.exp
@@ -57,3 +57,17 @@ if {[regexp "$hex <main>" $text]} {
}
Term::check_box "asm box" 3 0 77 15
+
+Term::command "layout split"
+set text [Term::get_all_lines]
+if {[regexp "21 *return 0.*$hex <main>" $text]} {
+ pass "split layout contents"
+} else {
+ fail "split layout contents"
+}
+
+# This check fails because the file name in the title overwrites the
+# box.
+setup_xfail *-*-*
+Term::check_box "source box in split layout" 3 0 77 8
+Term::check_box "asm box in split layout" 3 7 77 8
--
2.17.2