aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-08-24 17:45:24 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-24 17:45:24 -0700
commit176047c9f2ec8ccb4e0b6bfade4f21cb25d986e9 (patch)
treea49d437a0fdac57716c28e0fbc5e7b6066f1be31 /ld/testsuite/lib
parenta2d64ef20ba133be3bff20d45494a65dec6503be (diff)
downloadgdb-176047c9f2ec8ccb4e0b6bfade4f21cb25d986e9.zip
gdb-176047c9f2ec8ccb4e0b6bfade4f21cb25d986e9.tar.gz
gdb-176047c9f2ec8ccb4e0b6bfade4f21cb25d986e9.tar.bz2
ld: Add "--" after regexp
Add "--" after regexp to support dejagnu 1.4.4. * testsuite/ld-elf/pr21903c.d: Remove '\' before --. * testsuite/ld-elf/pr21903d.d: Likewise. * testsuite/ld-elf/pr21903e.d: Likewise. * testsuite/lib/ld-lib.exp (run_dump_test): Add "--" after regexp.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r--ld/testsuite/lib/ld-lib.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index cddcaf8..c240410 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -976,7 +976,7 @@ proc run_dump_test { name {extra_options {}} } {
&& (($cmdret == 0) == ($check_ld(terminal) == 0)) \
&& ((($check_ld(source) == "regex") \
&& ($check_ld(regex) == "") == ($comp_output == "") \
- && [regexp $check_ld(regex) $comp_output]) \
+ && [regexp -- $check_ld(regex) $comp_output]) \
|| (($check_ld(source) == "file") \
&& (![regexp_diff "tmpdir/ld.messages" "$srcdir/$subdir/$check_ld(file)"]))) } {
# We have the expected output from ld.