Skip to content

Commit

Permalink
Both FAIL and PASS "check sections 2"?
Browse files Browse the repository at this point in the history
	* testsuite/ld-checks/checks.exp (check sections 2): Don't
	continue on with rest of test past first fail.
  • Loading branch information
amodra committed Feb 21, 2023
1 parent 4a5752f commit 284e8cb
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions ld/testsuite/ld-checks/checks.exp
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,18 @@ proc section_check {} {
# Make sure that we got some output from the linker
if [string match "" $exec_output] then {
fail $test
}
} else {

# Now remove our expected error message
regsub -all ".*: section .data .* overlaps section .text .*" $exec_output "" exec_output
# Now remove our expected error message
regsub -all ".*: section .data .* overlaps section .text .*" $exec_output "" exec_output

# And check to see if anything else, (unexpected) was left
if [string match "" $exec_output] then {
pass $test
} else {
verbose -log "Unexpected linker message(s): $exec_output"
fail $test
# And check to see if anything else, (unexpected) was left
if [string match "" $exec_output] then {
pass $test
} else {
verbose -log "Unexpected linker message(s): $exec_output"
fail $test
}
}
}

Expand Down

0 comments on commit 284e8cb

Please sign in to comment.