Add test for "layout asm"
authorTom Tromey <tom@tromey.com>
Thu, 18 Jul 2019 22:21:45 +0000 (16:21 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 28 Jul 2019 03:08:33 +0000 (21:08 -0600)
This adds a very simple test for "layout asm".

gdb/testsuite/ChangeLog
2019-07-27  Tom Tromey  <tom@tromey.com>

* gdb.tui/basic.exp: Add "layout asm" test.

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

index f4c2d30..df5f39e 100644 (file)
@@ -1,5 +1,9 @@
 2019-07-27  Tom Tromey  <tom@tromey.com>
 
+       * gdb.tui/basic.exp: Add "layout asm" test.
+
+2019-07-27  Tom Tromey  <tom@tromey.com>
+
        * lib/tuiterm.exp: New file.
        * gdb.tui/basic.exp: New file.
 
index 61dcacb..6a664a2 100644 (file)
@@ -39,3 +39,8 @@ Term::check_contents "list main" "21 *return 0"
 # box.
 setup_xfail *-*-*
 Term::check_box "source box" 3 0 77 15
+
+Term::command "layout asm"
+Term::check_contents "asm window shows main" "$hex <main>"
+
+Term::check_box "asm box" 3 0 77 15