diff options
author | Andrew Burgess <aburgess@redhat.com> | 2023-11-29 16:10:46 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2023-12-08 18:06:27 +0000 |
commit | cff71358132db440b82747707b3c7c99efca6670 (patch) | |
tree | cee69b4345aed3217e0691c07ee19a7e286274ca /gdb/testsuite/gdb.ada/catch_ex.exp | |
parent | e59d0ad9bf8dfc4002835c8eee9e70e951c63d64 (diff) | |
download | gdb-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.ada/catch_ex.exp')
-rw-r--r-- | gdb/testsuite/gdb.ada/catch_ex.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/catch_ex.exp b/gdb/testsuite/gdb.ada/catch_ex.exp index 388eb94..22175d8 100644 --- a/gdb/testsuite/gdb.ada/catch_ex.exp +++ b/gdb/testsuite/gdb.ada/catch_ex.exp @@ -29,7 +29,7 @@ clean_restart ${testfile} # the regular expressions below. set any_nb "\[0-9\]+" set any_addr "0x\[0-9a-zA-Z\]+" -set eol "\[\r\n\]+" +set eol "\r\n" set sp "\[ \t\]*" set info_break_header "Num${sp}Type${sp}Disp${sp}Enb${sp}Address${sp}What" |