summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfweak/elfweak.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elfweak/elfweak.exp')
-rw-r--r--ld/testsuite/ld-elfweak/elfweak.exp21
1 files changed, 6 insertions, 15 deletions
diff --git a/ld/testsuite/ld-elfweak/elfweak.exp b/ld/testsuite/ld-elfweak/elfweak.exp
index 85da211e803..3481878014d 100644
--- a/ld/testsuite/ld-elfweak/elfweak.exp
+++ b/ld/testsuite/ld-elfweak/elfweak.exp
@@ -103,7 +103,8 @@ proc objdump_symstuff { objdump object expectfile } {
verbose "# Diff'ing: $expectfile $tmpdir/objdump.out" 2
set eof -1
- set differences 0
+ set list_a {}
+ set list_b {}
while { [gets $file_a line] != $eof } {
if [regexp "^#.*$" $line] then {
@@ -128,7 +129,6 @@ proc objdump_symstuff { objdump object expectfile } {
set line_a [lindex $list_a $i]
set line_b [lindex $list_b $i]
-
verbose "\t$expectfile: $i: $line_a" 3
verbose "\t/tmp/objdump.out: $i: $line_b" 3
if [regexp $line_a $line_b] then {
@@ -145,17 +145,12 @@ proc objdump_symstuff { objdump object expectfile } {
verbose -log "Line count"
return 0
}
+ return 1
- if $differences<1 then {
- return 1
- }
-
- return 0
} else {
verbose -log "$exec_output"
return 0
}
-
}
#
@@ -199,7 +194,8 @@ proc objdump_dynsymstuff { objdump object expectfile } {
verbose "# Diff'ing: $expectfile $tmpdir/objdump.out" 2
set eof -1
- set differences 0
+ set list_a {}
+ set list_b {}
while { [gets $file_a line] != $eof } {
if [regexp "^#.*$" $line] then {
@@ -256,17 +252,12 @@ proc objdump_dynsymstuff { objdump object expectfile } {
verbose -log "Line count"
return 0
}
+ return 1
- if $differences<1 then {
- return 1
- }
-
- return 0
} else {
verbose -log "$exec_output"
return 0
}
-
}
proc build_lib {test libname objs dynsymexp} {