aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-07-22 13:03:30 +0000
committerNick Clifton <nickc@redhat.com>2013-07-22 13:03:30 +0000
commit9933d1914983c250e1d082e47af68983dd8020a6 (patch)
tree69a4ea7c8aa2ce54ceb68005f1d3a3dd68169e09 /ld/testsuite
parent1cf55f60bfeca4e6ac3c80c8bb8913939346be3a (diff)
downloadgdb-9933d1914983c250e1d082e47af68983dd8020a6.zip
gdb-9933d1914983c250e1d082e47af68983dd8020a6.tar.gz
gdb-9933d1914983c250e1d082e47af68983dd8020a6.tar.bz2
* ld-scripts/script.exp: Use run_dump_test instead of
ld_simple_link to check the error message. * ld-scripts/align-with-input.d: New file. * ld-scripts/region-alias-1.d: Likewise. * ld-scripts/region-alias-2.d: Likewise. * ld-scripts/region-alias-3.d: Likewise. * ld-scripts/region-alias-4.d: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog10
-rw-r--r--ld/testsuite/ld-scripts/script.exp15
2 files changed, 12 insertions, 13 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index ddb5bc3..a161428 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,13 @@
+* 2013-07-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * ld-scripts/script.exp: Use run_dump_test instead of
+ ld_simple_link to check the error message.
+ * ld-scripts/align-with-input.d: New file.
+ * ld-scripts/region-alias-1.d: Likewise.
+ * ld-scripts/region-alias-2.d: Likewise.
+ * ld-scripts/region-alias-3.d: Likewise.
+ * ld-scripts/region-alias-4.d: Likewise.
+
2013-07-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* ld-scripts/script.exp: Run align with input test.
diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp
index cc099a9..41432f9 100644
--- a/ld/testsuite/ld-scripts/script.exp
+++ b/ld/testsuite/ld-scripts/script.exp
@@ -129,18 +129,7 @@ if ![ld_simple_link $ld tmpdir/script "$flags -T $srcdir/$subdir/memory.t tmpdir
set test_script_list [lsort [glob $srcdir/$subdir/region-alias-*.t]]
foreach test_script $test_script_list {
- set testname [file tail $test_script]
- if ![ld_simple_link $ld tmpdir/script "$flags -T $test_script tmpdir/script.o"] {
- xfail "REGION_ALIAS: $testname"
- } else {
- xpass "REGION_ALIAS: $testname"
- }
+ run_dump_test [string range $test_script 0 end-2]
}
-set testname "ALIGN_WITH_INPUT"
-
-if ![ld_simple_link $ld tmpdir/script "$flags -T $srcdir/$subdir/align-with-input.t tmpdir/script.o"] {
- xfail $testname
-} else {
- xpass $testname
-}
+run_dump_test "align-with-input"