diff options
author | Tom Tromey <tom@tromey.com> | 2019-12-11 19:17:47 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-12-11 19:19:13 -0700 |
commit | 873de05c85f79a385863b39b1de2a7add9d15a07 (patch) | |
tree | c4fb7c56bd1f0b1d975200df3842dfb1a6662658 | |
parent | a848998a758598a339cdd8511335db3544a1f9fb (diff) | |
download | gdb-873de05c85f79a385863b39b1de2a7add9d15a07.zip gdb-873de05c85f79a385863b39b1de2a7add9d15a07.tar.gz gdb-873de05c85f79a385863b39b1de2a7add9d15a07.tar.bz2 |
Fix TUI test suite regexps
Testing on another TUI series showed that some of the regexps in the
TUI test suite have been incorrect for a while. In particular, "|"
was meant literally in these tests, but was interpreted as pattern
alternation due to lack of quoting.
This patch fixes the bad tests. I am checking this in.
gdb/testsuite/ChangeLog
2019-12-11 Tom Tromey <tom@tromey.com>
* gdb.tui/resize.exp: Fix regexp.
* gdb.tui/regs.exp: Fix regexps.
* gdb.tui/main.exp: Fix regexp.
Change-Id: Ib6661361171ac120bb92f4a8aec7efa4bcaa36b9
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.tui/main.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.tui/regs.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.tui/resize.exp | 2 |
4 files changed, 10 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index cf3fcb7..b31e8dd 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2019-12-11 Tom Tromey <tom@tromey.com> + * gdb.tui/resize.exp: Fix regexp. + * gdb.tui/regs.exp: Fix regexps. + * gdb.tui/main.exp: Fix regexp. + +2019-12-11 Tom Tromey <tom@tromey.com> + * gdb.tui/resize.exp: Update. * gdb.tui/empty.exp (layouts): Update. diff --git a/gdb/testsuite/gdb.tui/main.exp b/gdb/testsuite/gdb.tui/main.exp index eab28de..57ddb52 100644 --- a/gdb/testsuite/gdb.tui/main.exp +++ b/gdb/testsuite/gdb.tui/main.exp @@ -31,4 +31,4 @@ if {![Term::enter_tui]} { } Term::command "file [standard_output_file $testfile]" -Term::check_contents "show main after file" ">|21 *return 0" +Term::check_contents "show main after file" "\\|.*21 *return 0" diff --git a/gdb/testsuite/gdb.tui/regs.exp b/gdb/testsuite/gdb.tui/regs.exp index dcecd03..d0114a2 100644 --- a/gdb/testsuite/gdb.tui/regs.exp +++ b/gdb/testsuite/gdb.tui/regs.exp @@ -34,7 +34,7 @@ if {![Term::enter_tui]} { unsupported "TUI not supported" } -Term::check_contents "source at startup" ">|21 *return 0" +Term::check_contents "source at startup" "\\|.*21 *return 0" Term::command "layout regs" Term::check_box "register box" 0 0 80 7 @@ -42,4 +42,4 @@ Term::check_box "source box in regs layout" 0 6 80 9 set text [Term::get_line 1] # Just check for any register window content at all. -Term::check_contents "any register contents" "^|.*\[^ \].*|$" +Term::check_contents "any register contents" "\\|.*\[^ \].*\\|" diff --git a/gdb/testsuite/gdb.tui/resize.exp b/gdb/testsuite/gdb.tui/resize.exp index c530279..d210aaa 100644 --- a/gdb/testsuite/gdb.tui/resize.exp +++ b/gdb/testsuite/gdb.tui/resize.exp @@ -34,7 +34,7 @@ if {![Term::enter_tui]} { unsupported "TUI not supported" } -Term::check_contents "source at startup" ">|21 *return 0" +Term::check_contents "source at startup" "\\|.*21 *return 0" Term::resize 40 90 Term::check_box "source box after resize" 0 0 90 26 |