From: Tom Tromey Date: Thu, 18 Jul 2019 22:54:32 +0000 (-0600) Subject: Add "layout split" test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f790b310d2c29f08be79d6af8d8c391bf793fce7;p=binutils-gdb.git Add "layout split" test This adds a test of "layout split" to the TUI test suite. gdb/testsuite/ChangeLog 2019-07-27 Tom Tromey * gdb.tui/basic.exp: Add "layout split" test. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index df5f39eb3b6..17150d36f87 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-07-27 Tom Tromey + + * gdb.tui/basic.exp: Add "layout split" test. + 2019-07-27 Tom Tromey * gdb.tui/basic.exp: Add "layout asm" test. diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp index 6a664a2e9d1..a0054001630 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
" Term::check_box "asm box" 3 0 77 15 + +Term::command "layout split" +Term::check_contents "split layout contents" "21 *return 0.*$hex
" + +# 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