From 9933d1914983c250e1d082e47af68983dd8020a6 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 22 Jul 2013 13:03:30 +0000 Subject: [PATCH] * 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. --- ld/testsuite/ChangeLog | 10 ++++++++++ ld/testsuite/ld-scripts/script.exp | 15 ++------------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index ddb5bc37246..a1614282cff 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,13 @@ +* 2013-07-22 Sebastian Huber + + * 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 * 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 cc099a9d87f..41432f951ea 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"