]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add "layout split" test
authorTom Tromey <tom@tromey.com>
Thu, 18 Jul 2019 22:54:32 +0000 (16:54 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 28 Jul 2019 03:08:33 +0000 (21:08 -0600)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.tui/basic.exp

index df5f39eb3b6ecb25e8a18b818be6adfba566e8ff..17150d36f87530226c35185c59f595b1bfd580d2 100644 (file)
@@ -1,3 +1,7 @@
+2019-07-27  Tom Tromey  <tom@tromey.com>
+
+       * gdb.tui/basic.exp: Add "layout split" test.
+
 2019-07-27  Tom Tromey  <tom@tromey.com>
 
        * gdb.tui/basic.exp: Add "layout asm" test.
index 6a664a2e9d1b1f048d81ffeb731a5c3ada39138f..a005400163090b31fdeaa1f8f99053e2a1603d27 100644 (file)
@@ -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