* ld-scripts/script.exp: Use run_dump_test instead of
authorNick Clifton <nickc@redhat.com>
Mon, 22 Jul 2013 13:03:30 +0000 (13:03 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 22 Jul 2013 13:03:30 +0000 (13:03 +0000)
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
ld/testsuite/ld-scripts/script.exp

index ddb5bc372463c6760a1d7ba7d5422b262bbb85bf..a1614282cff79f8cf3986309038e3efd6c4e0937 100644 (file)
@@ -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.
index cc099a9d87f2ff43953a67e0d2893eac12ff9a1c..41432f951eac3fc5a0a9372ee9db5826152abd3b 100644 (file)
@@ -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"