]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Ensure UNSUPPORTED tests in tree-prof do not report absolute paths.
authorMarcus Shawcroft <marcus.shawcroft@arm.com>
Wed, 12 Mar 2014 14:55:54 +0000 (14:55 +0000)
committerMarcus Shawcroft <mshawcroft@gcc.gnu.org>
Wed, 12 Mar 2014 14:55:54 +0000 (14:55 +0000)
The test infrastructure for gcc.dg/tree-prof reports relative paths
for all test outcomes except UNSUPPORTED, for which it reports the
absolute path of the test case.  This patch ensure a relative path is
reported consistently reducing noise in regression test comparisons.

From-SVN: r208514

gcc/testsuite/ChangeLog
gcc/testsuite/lib/profopt.exp

index 5f1297e27b35a65acb4c21d4ecbb580a3e38088f..6fa6c67f2d714dd88f03b5c3fe8cacc4481fa7a0 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-12  Marcus Shawcroft  <marcus.shawcroft@arm.com>
+
+       * lib/profopt.exp (profopt-execute): Use $testcase in
+       unsupported.
+
 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.dg/tree-ssa/ssa-ifcombine-12.c: New test.
index e0d849ef03ea329ef05ba20a48941cded0e89dd1..cb6a350dd1b087655f7a1f17aebc3e11225b92b8 100644 (file)
@@ -277,7 +277,7 @@ proc profopt-execute { src } {
        set dg-do-what [list "run" "" P]
        set extra_flags [profopt-get-options $src]
        if { [lindex ${dg-do-what} 1 ] == "N" } {
-           unsupported "$src"
+           unsupported "$testcase"
            unset testname_with_flags
            verbose "$src not supported on this target, skipping it" 3
            return