[binutils-gdb] LD/testsuite: ld-lib.exp: Fix a typo, s/regexp/regex/

Maciej W.Rozycki macro@sourceware.org
Thu Feb 2 22:41:00 GMT 2017


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2e9af2d0de9534765e7394d10b2d307c4259de31

commit 2e9af2d0de9534765e7394d10b2d307c4259de31
Author: Maciej W. Rozycki <macro@imgtec.com>
Date:   Thu Feb 2 19:09:57 2017 +0000

    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/.

Diff:
---
 ld/ChangeLog                | 5 +++++
 ld/testsuite/lib/ld-lib.exp | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1ce8439..ca3b651 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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.
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 61626ec..fece871 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)"



More information about the Binutils-cvs mailing list