This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ld-elfvers don't fail on non-empty results


	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]