aboutsummaryrefslogtreecommitdiff
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/ld-lib.exp
parentAutomatic date update in version.in (diff)
downloadbinutils-gdb-176047c9f2ec8ccb4e0b6bfade4f21cb25d986e9.tar.gz
binutils-gdb-176047c9f2ec8ccb4e0b6bfade4f21cb25d986e9.tar.bz2
binutils-gdb-176047c9f2ec8ccb4e0b6bfade4f21cb25d986e9.zip
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/ld-lib.exp')
-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 cddcaf834b2..c2404102703 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.