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.
This commit is contained in:
parent
f522190fa7
commit
ca16c5b392
|
@ -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>
|
2016-12-03 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/ld-cdtest/cdtest-foo.cc: Test for __GNUG__ >= 2.
|
* testsuite/ld-cdtest/cdtest-foo.cc: Test for __GNUG__ >= 2.
|
||||||
|
|
|
@ -390,8 +390,12 @@ proc objdump_dynsymstuff { objdump object expectfile } {
|
||||||
close $file_b
|
close $file_b
|
||||||
|
|
||||||
# Support empty files.
|
# Support empty files.
|
||||||
if { ![info exists list_a] && ![info exists list_b] } then {
|
if { ![info exists list_a] } then {
|
||||||
return 1
|
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 } {
|
for { set i 0 } { $i < [llength $list_b] } { incr i } {
|
||||||
|
|
Loading…
Reference in New Issue