This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/RFA]: Tidy up names of ld-script REGION_ALIAS tests


All,

The attached patch changes the names of the ld-script REGION_ALIAS tests
so that the full path of the test being run does not appear in the test
name.

This makes it easier to diff two testsuite runs based in different
directories.

The patch has been tested on arm-none-eabi.

Please can someone review and if appropriate approve?

Thanks,

Matt

ld/testsuite/ChangeLog:
2010-11-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>

	* ld-scripts/script.exp: Remove full path from REGION_ALIAS test
	names.

-- 
Matthew Gretton-Dann
Principal Engineer - PDSW Tools
ARM Ltd
diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp
index 2e69922..267c0be 100644
--- a/ld/testsuite/ld-scripts/script.exp
+++ b/ld/testsuite/ld-scripts/script.exp
@@ -130,9 +130,10 @@ 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: $test_script"
+        xfail "REGION_ALIAS: $testname"
     } else {
-        xpass "REGION_ALIAS: $test_script"
+        xpass "REGION_ALIAS: $testname"
     }
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]