]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix regexp quoting in gdb.ada test cases
authorTom Tromey <tromey@adacore.com>
Wed, 28 Aug 2024 13:33:46 +0000 (07:33 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 30 Aug 2024 15:11:12 +0000 (09:11 -0600)
commitbcae3bb6509e1111c2859c6b24306aefecdd2570
tree7f0b48a5156e09bff89dca63acc6c10f64bc9265
parent67e30b15212adc1502b898a1ca224fdf65dc110d
Fix regexp quoting in gdb.ada test cases

I noticed that some gdb.ada tests used regular expressions like:

         "Continuing\..*$inferior_exited_re.*" \

Here, the "\." should either be "." or "\\." -- "\." is not really
meaningful.

This patch fixes all the cases of this I could find in gdb.ada.  In
one test (fun_renaming.exp), using "\\." would result in failures, and
here I rewrote the tests to use -wrap.

Approved-By: Andrew Burgess <aburgess@redhat.com>
14 files changed:
gdb/testsuite/gdb.ada/bp_c_mixed_case.exp
gdb/testsuite/gdb.ada/bp_inlined_func.exp
gdb/testsuite/gdb.ada/call_pn.exp
gdb/testsuite/gdb.ada/catch_assert_if.exp
gdb/testsuite/gdb.ada/catch_ex.exp
gdb/testsuite/gdb.ada/catch_ex_std.exp
gdb/testsuite/gdb.ada/excep_handle.exp
gdb/testsuite/gdb.ada/fun_overload_menu.exp
gdb/testsuite/gdb.ada/fun_renaming.exp
gdb/testsuite/gdb.ada/homonym.exp
gdb/testsuite/gdb.ada/mi_var_access.exp
gdb/testsuite/gdb.ada/operator_bp.exp
gdb/testsuite/gdb.ada/rec_comp.exp
gdb/testsuite/gdb.ada/task_bp.exp