diff mbox

Ensure UNSUPPORTED tests in tree-prof do not report absolute, paths.

Message ID 53207193.7090007@arm.com
State New
Headers show

Commit Message

Marcus Shawcroft March 12, 2014, 2:39 p.m. UTC
Hi,

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.


I'd like this to go in now during stage-4 in order to have slightly less 
noisy 4.9 regression tests for the next n years.

OK?

Cheers
/Marcus


testsuite/ChangeLog

2014-03-12  Marcus Shawcroft  <marcus.shawcroft@arm.com>

         * lib/profopt.exp (profopt-execute): Use $testcase in
         unsupported.

Comments

Jakub Jelinek March 12, 2014, 2:44 p.m. UTC | #1
On Wed, Mar 12, 2014 at 02:39:15PM +0000, Marcus Shawcroft wrote:
> 2014-03-12  Marcus Shawcroft  <marcus.shawcroft@arm.com>
> 
>         * lib/profopt.exp (profopt-execute): Use $testcase in
>         unsupported.

Ok, thanks.

> --- a/gcc/testsuite/lib/profopt.exp
> +++ b/gcc/testsuite/lib/profopt.exp
> @@ -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

	Jakub
diff mbox

Patch

diff --git a/gcc/testsuite/lib/profopt.exp b/gcc/testsuite/lib/profopt.exp
index e0d849e..cb6a350 100644
--- a/gcc/testsuite/lib/profopt.exp
+++ b/gcc/testsuite/lib/profopt.exp
@@ -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
-- 
1.7.9.5