diff mbox

[v2,2/8] Add test for "layout asm"

Message ID 20190726185134.1856-3-tom@tromey.com
State New
Headers show

Commit Message

Tom Tromey July 26, 2019, 6:51 p.m. UTC
This adds a very simple test for "layout asm".

2019-07-21  Tom Tromey  <tom@tromey.com>

	* gdb.tui/basic.exp: Add "layout asm" test.
---
 gdb/testsuite/ChangeLog         | 4 ++++
 gdb/testsuite/gdb.tui/basic.exp | 6 ++++++
 2 files changed, 10 insertions(+)
diff mbox

Patch

diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp
index 33ce49a1b3f..6f0e1457051 100644
--- a/gdb/testsuite/gdb.tui/basic.exp
+++ b/gdb/testsuite/gdb.tui/basic.exp
@@ -40,3 +40,9 @@  gdb_assert {[regexp "21 *return 0" $text]} "list main"
 # box.
 setup_xfail *-*-*
 Term::check_box "source box" 3 0 77 15
+
+Term::command "layout asm"
+set text [Term::get_all_lines]
+gdb_assert {[regexp "$hex <main>" $text]} "asm window shows main"
+
+Term::check_box "asm box" 3 0 77 15