diff options
author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2022-11-19 15:55:33 +0100 |
---|---|---|
committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2022-11-19 15:55:33 +0100 |
commit | f80d30f61a5cb2293c2907909e2fbfc6a5be4144 (patch) | |
tree | f491fb41cc5a9cc18aa7dfc28d14389a2c87ae4d | |
parent | 78805ff8aecf0a8c828fb1e2c344fa3a56655120 (diff) | |
download | gdb-f80d30f61a5cb2293c2907909e2fbfc6a5be4144.zip gdb-f80d30f61a5cb2293c2907909e2fbfc6a5be4144.tar.gz gdb-f80d30f61a5cb2293c2907909e2fbfc6a5be4144.tar.bz2 |
Add missing gdb_prompt in ctxobj.exp to avoid random failure, fix typo.
ctxobj.exp fails randomly when computer is loaded.
With the addition of $gdb_prompt in the regexp testing for breakpoint hit,
I could not make it fail anymore.
Also fixed a typo in a comment.
-rw-r--r-- | gdb/testsuite/gdb.base/ctxobj.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/lib/mi-support.exp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/ctxobj.exp b/gdb/testsuite/gdb.base/ctxobj.exp index 3ca8111..228a689 100644 --- a/gdb/testsuite/gdb.base/ctxobj.exp +++ b/gdb/testsuite/gdb.base/ctxobj.exp @@ -70,7 +70,7 @@ gdb_test "break ctxobj-f.c:$bp_location" \ global expect_out set test "continue to get_version_1" gdb_test_multiple "continue" $test { - -re "Breakpoint ($bkptno_num_re), get_version_1 \\(\\).*" { + -re "Breakpoint ($bkptno_num_re), get_version_1 \\(\\).*\r\n.*$gdb_prompt $" { set bpno $expect_out(1,string) pass $test } @@ -110,7 +110,7 @@ gdb_test "print this_version_num == v" \ # Do the same, but from get_version_2. set test "continue to get_version_2" gdb_test_multiple "continue" $test { - -re "Breakpoint ($bkptno_num_re), get_version_2 \\(\\).*" { + -re "Breakpoint ($bkptno_num_re), get_version_2 \\(\\).*\r\n.*$gdb_prompt $" { set bpno $expect_out(1,string) pass $test } diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index a45c6f7..14ddf0a 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -1211,7 +1211,7 @@ proc mi_detect_async {} { # EXTRA can be a list of one, two or three elements. # The first element is the regular expression # for output expected right after *stopped, and before GDB prompt. -# The third element is the regulation expression for the locno +# The third element is the regular expression for the locno # right after bkptno field. The locno regex should not include # the comma separating it from the following fields. # |