aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2017-02-02 19:09:57 +0000
committerMaciej W. Rozycki <macro@imgtec.com>2017-02-02 22:30:55 +0000
commit2e9af2d0de9534765e7394d10b2d307c4259de31 (patch)
treee83d7939c8f7cc07f41b91458067fe7cd17d87d1 /ld/testsuite/lib/ld-lib.exp
parentBFD: Wrap overlong error handler call line in `elf_gc_sweep' (diff)
downloadbinutils-gdb-2e9af2d0de9534765e7394d10b2d307c4259de31.tar.gz
binutils-gdb-2e9af2d0de9534765e7394d10b2d307c4259de31.tar.bz2
binutils-gdb-2e9af2d0de9534765e7394d10b2d307c4259de31.zip
LD/testsuite: ld-lib.exp: Fix a typo, s/regexp/regex/
Match `$check_ld(source)' against "regex" rather than "regexp" in reporting, correcting test framework diagnostics, e.g.: tmpdir/undefined.o: In function `foo': (.text+0x0): undefined reference to `bar' failed with: <tmpdir/undefined.o: In function `foo': (.text+0x0): undefined reference to `bar'>, no expected output tmpdir/undefined.o: In function `foo': (.text+0x0): undefined reference to `bar' PASS: MIPS undefined reference (current) vs: tmpdir/undefined.o: In function `foo': (.text+0x0): undefined reference to `bar' failed with: <tmpdir/undefined.o: In function `foo': (.text+0x0): undefined reference to `bar'>, expected: <\A[^\n]*\.o: In function `foo':\n\(\.text\+0x0\): undefined reference to `bar'\Z> tmpdir/undefined.o: In function `foo': (.text+0x0): undefined reference to `bar' PASS: MIPS undefined reference (corrected). No functional change. ld/ * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo, s/regexp/regex/.
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 61626ec5796..fece871307d 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -956,7 +956,7 @@ proc run_dump_test { name {extra_options {}} } {
set exitstat "succeeded"
if { $cmdret != 0 } { set exitstat "failed" }
- if { $check_ld(source) == "regexp" } {
+ if { $check_ld(source) == "regex" } {
verbose -log "$exitstat with: <$comp_output>, expected: <$check_ld(regex)>"
} elseif { $check_ld(source) == "file" } {
verbose -log "$exitstat with: <$comp_output>, expected in file $check_ld(file)"