This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ld-elfvers don't fail on non-empty results
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Sat, 3 Dec 2016 21:21:22 +1030
- Subject: ld-elfvers don't fail on non-empty results
- Authentication-results: sourceware.org; auth=none
* testsuite/ld-elfvers/vers.exp (objdump_dynsymstuff): Don't abort
on non-empty results with empty expected.
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index 2f86938..a2a678b 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -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 } {
--
Alan Modra
Australia Development Lab, IBM