]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: tighten up some end-of-line patterns
authorAndrew Burgess <aburgess@redhat.com>
Wed, 29 Nov 2023 16:10:46 +0000 (16:10 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 8 Dec 2023 18:06:27 +0000 (18:06 +0000)
commitcff71358132db440b82747707b3c7c99efca6670
treecee69b4345aed3217e0691c07ee19a7e286274ca
parente59d0ad9bf8dfc4002835c8eee9e70e951c63d64
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>
gdb/testsuite/gdb.ada/catch_assert_if.exp
gdb/testsuite/gdb.ada/catch_ex.exp
gdb/testsuite/gdb.ada/dyn_loc.exp
gdb/testsuite/gdb.ada/excep_handle.exp
gdb/testsuite/gdb.ada/frame_args.exp
gdb/testsuite/gdb.ada/info_types.exp
gdb/testsuite/gdb.base/info-target.exp
gdb/testsuite/gdb.base/nofield.exp
gdb/testsuite/gdb.cp/local.exp
gdb/testsuite/gdb.stabs/exclfwd.exp