LD/testsuite: ld-lib.exp: Fix a typo, s/regexp/regex/
authorMaciej W. Rozycki <macro@imgtec.com>
Thu, 2 Feb 2017 19:09:57 +0000 (19:09 +0000)
committerMaciej W. Rozycki <macro@imgtec.com>
Thu, 2 Feb 2017 22:30:55 +0000 (22:30 +0000)
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/.

ld/ChangeLog
ld/testsuite/lib/ld-lib.exp

index 1ce8439e86a66b9363642d1f18b0f4ab80085d37..ca3b65166dc5b6447aec822ade21d5f9fdf1c70b 100644 (file)
@@ -1,3 +1,8 @@
+2017-02-02  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
+       s/regexp/regex/.
+
 2017-02-02  Jiong Wang  <jiong.wang@arm.com>
 
        * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
index 61626ec5796344532eec82d5805019163b9791ad..fece871307dfe5f2a6d40d31b019bc1eca0ba38c 100644 (file)
@@ -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)"
This page took 0.028505 seconds and 4 git commands to generate.