From: Marcus Shawcroft Date: Wed, 12 Mar 2014 14:55:54 +0000 (+0000) Subject: Ensure UNSUPPORTED tests in tree-prof do not report absolute paths. X-Git-Tag: releases/gcc-4.9.0~482 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d05d0c0fac86b9b1f04982172f77577da4ce118;p=thirdparty%2Fgcc.git Ensure UNSUPPORTED tests in tree-prof do not report absolute paths. 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5f1297e27b35..6fa6c67f2d71 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-03-12 Marcus Shawcroft + + * lib/profopt.exp (profopt-execute): Use $testcase in + unsupported. + 2014-03-12 Jakub Jelinek * gcc.dg/tree-ssa/ssa-ifcombine-12.c: New test. diff --git a/gcc/testsuite/lib/profopt.exp b/gcc/testsuite/lib/profopt.exp index e0d849ef03ea..cb6a350dd1b0 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