aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.tui/basic.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-18 16:54:32 -0600
committerTom Tromey <tom@tromey.com>2019-07-27 21:08:33 -0600
commitf790b310d2c29f08be79d6af8d8c391bf793fce7 (patch)
tree4cfabd7b21aa9344e7e62c963d08ed2e6e3badd6 /gdb/testsuite/gdb.tui/basic.exp
parentd95fc6eec07344f83ec0aba4a1e4f17fb53da45b (diff)
downloadfsf-binutils-gdb-f790b310d2c29f08be79d6af8d8c391bf793fce7.zip
fsf-binutils-gdb-f790b310d2c29f08be79d6af8d8c391bf793fce7.tar.gz
fsf-binutils-gdb-f790b310d2c29f08be79d6af8d8c391bf793fce7.tar.bz2
Add "layout split" test
This adds a test of "layout split" to the TUI test suite. gdb/testsuite/ChangeLog 2019-07-27 Tom Tromey <tom@tromey.com> * gdb.tui/basic.exp: Add "layout split" test.
Diffstat (limited to 'gdb/testsuite/gdb.tui/basic.exp')
-rw-r--r--gdb/testsuite/gdb.tui/basic.exp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp
index 6a664a2..a005400 100644
--- a/gdb/testsuite/gdb.tui/basic.exp
+++ b/gdb/testsuite/gdb.tui/basic.exp
@@ -44,3 +44,12 @@ Term::command "layout asm"
Term::check_contents "asm window shows main" "$hex <main>"
Term::check_box "asm box" 3 0 77 15
+
+Term::command "layout split"
+Term::check_contents "split layout contents" "21 *return 0.*$hex <main>"
+
+# 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