aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/orphan-5.l
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-03-30 14:34:34 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2016-03-30 17:58:05 +0100
commit62bdf2d66e4816219279cff7440ae1a167d7aca2 (patch)
tree41cfde116c17b1bb91200013df844fe0b62337f6 /ld/testsuite/ld-elf/orphan-5.l
parentfb3f3d25c3cbf561d33b258ff11fd8139f6ad75d (diff)
downloadgdb-62bdf2d66e4816219279cff7440ae1a167d7aca2.zip
gdb-62bdf2d66e4816219279cff7440ae1a167d7aca2.tar.gz
gdb-62bdf2d66e4816219279cff7440ae1a167d7aca2.tar.bz2
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.
Diffstat (limited to 'ld/testsuite/ld-elf/orphan-5.l')
-rw-r--r--ld/testsuite/ld-elf/orphan-5.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elf/orphan-5.l b/ld/testsuite/ld-elf/orphan-5.l
index 20a9fe7..765c8ff 100644
--- a/ld/testsuite/ld-elf/orphan-5.l
+++ b/ld/testsuite/ld-elf/orphan-5.l
@@ -1,5 +1,5 @@
#...
-.*warning: orphan section `\.notbad' from `tmpdir/orphan\.o' being placed in section `\.notbad'\.
+.*warning: orphan section `\.notbad' from `tmpdir/.*\.o' being placed in section `\.notbad'\.
#...
-.*warning: orphan section `\.note\.bar' from `tmpdir/orphan\.o' being placed in section `\.note\.bar'\.
+.*warning: orphan section `\.note\.bar' from `tmpdir/.*\.o' being placed in section `\.note\.bar'\.
#...