aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/local.exp
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-11-29 16:10:46 +0000
committerAndrew Burgess <aburgess@redhat.com>2023-12-08 18:06:27 +0000
commitcff71358132db440b82747707b3c7c99efca6670 (patch)
treecee69b4345aed3217e0691c07ee19a7e286274ca /gdb/testsuite/gdb.cp/local.exp
parente59d0ad9bf8dfc4002835c8eee9e70e951c63d64 (diff)
downloadgdb-cff71358132db440b82747707b3c7c99efca6670.zip
gdb-cff71358132db440b82747707b3c7c99efca6670.tar.gz
gdb-cff71358132db440b82747707b3c7c99efca6670.tar.bz2
gdb/testsuite: tighten up some end-of-line patterns
Following on from the previous commit, I searched the testsuite for places where we did: set eol "<some pattern>" in most cases the <some pattern> could be replaced with "\r\n" though in the stabs test I've switched to using the multi_line proc as that seemed like a better choice. In gdb.ada/info_types.exp I did need to add an extra use of $eol as the previous pattern would match multiple newlines, and in this one place we were actually expecting to match multiple newlines. The tighter pattern only matches a single newline, so we now need to be explicit when multiple newlines are expected -- I think this is a good thing. All the tests are still passing for me after these changes. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite/gdb.cp/local.exp')
-rw-r--r--gdb/testsuite/gdb.cp/local.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/local.exp b/gdb/testsuite/gdb.cp/local.exp
index 67b3eb7..7d84f57 100644
--- a/gdb/testsuite/gdb.cp/local.exp
+++ b/gdb/testsuite/gdb.cp/local.exp
@@ -157,7 +157,7 @@ gdb_test "up" ".*main.*" "up from marker2"
# Make sure that `Local' isn't in scope here; it's local to foobar.
# setup_kfail "gdb/825"
-set eol "\[\t \]*\[\r\n\]+\[\t \]*"
+set eol "\[\t \]*\r\n\[\t \]*"
gdb_test_multiple "ptype Local" "local out of scope" {
-re "No symbol \"Local\" in current context.*${gdb_prompt} $" {
pass "local out of scope"