ld-elfvers don't fail on non-empty results
authorAlan Modra <amodra@gmail.com>
Sat, 3 Dec 2016 10:29:19 +0000 (20:59 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 3 Dec 2016 10:29:19 +0000 (20:59 +1030)
* testsuite/ld-elfvers/vers.exp (objdump_dynsymstuff): Don't abort
on non-empty results with empty expected.

ld/ChangeLog
ld/testsuite/ld-elfvers/vers.exp

index c02f5e8e3a9bd596d5c3c0eb9b1245f7bc6c55a0..86a4fce21b0ececdce0cc99deb53dca913428547 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-03  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elfvers/vers.exp (objdump_dynsymstuff): Don't abort
+       on non-empty results with empty expected.
+
 2016-12-03  Alan Modra  <amodra@gmail.com>
 
        * testsuite/ld-cdtest/cdtest-foo.cc: Test for __GNUG__ >= 2.
index 2f86938f5cd245f55dcb46e119a7224a29a4b420..a2a678b924ea947e5231d698c4c225146e056142 100644 (file)
@@ -390,8 +390,12 @@ proc objdump_dynsymstuff { objdump object expectfile } {
        close $file_b
 
        # Support empty files.
-       if { ![info exists list_a] && ![info exists list_b] } then {
-           return 1
+       if { ![info exists list_a] } then {
+           if { ![info exists list_b] } then {
+               return 1
+           }
+           verbose -log "\t$tmpdir/objdump.out: $list_b"
+           return 0
        }
 
        for { set i 0 } { $i < [llength $list_b] } { incr i } {
This page took 0.03073 seconds and 4 git commands to generate.