ld/testing: Fix error and warning checks in run_dump_test
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 30 Mar 2016 13:34:34 +0000 (14:34 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 30 Mar 2016 16:58:05 +0000 (17:58 +0100)
commit62bdf2d66e4816219279cff7440ae1a167d7aca2
tree41cfde116c17b1bb91200013df844fe0b62337f6
parentfb3f3d25c3cbf561d33b258ff11fd8139f6ad75d
ld/testing: Fix error and warning checks in run_dump_test

The options warning_output and error_output to the run_dump_test
function were incorrectly checking the return value from the regexp_diff
function, and so, as a result failing tests were showing as a pass.
Fixed in this commit.

ld/ChangeLog:

* testsuite/lib/ld-lib.exp (run_dump_test): Fix check of return
value from regexp_diff.
* testsuite/ld-elf/orphan-5.l: Fix expected output.
* testsuite/ld-elf/orphan-6.l: Likewise.
ld/ChangeLog
ld/testsuite/ld-elf/orphan-5.l
ld/testsuite/ld-elf/orphan-6.l
ld/testsuite/lib/ld-lib.exp