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
This commit is contained in:
Marcus Shawcroft 2014-03-12 14:55:54 +00:00 committed by Marcus Shawcroft
parent bf4787b267
commit 3d05d0c0fa
2 changed files with 6 additions and 1 deletions

View 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.

View 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