jit.exp: Avoid embedding full paths into test results

gcc/testsuite/ChangeLog:
	* jit.dg/jit.exp (jit-dg-test): Use $name rathen than $prog
	when calling jit_check_compile to avoid embedding the full path of
	the testcase into the test results.

From-SVN: r218225
This commit is contained in:
David Malcolm 2014-12-01 15:48:46 +00:00 committed by David Malcolm
parent da42b278b2
commit 81f263694d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-12-01 David Malcolm <dmalcolm@redhat.com>
* jit.dg/jit.exp (jit-dg-test): Use $name rathen than $prog
when calling jit_check_compile to avoid embedding the full path of
the testcase into the test results.
2014-12-01 Marek Polacek <polacek@redhat.com>
PR sanitizer/64121

View File

@ -202,7 +202,8 @@ proc jit-dg-test { prog do_what extra_tool_flags } {
# Create the test executable:
set comp_output [gcc_target_compile $prog $output_file $do_what \
"{additional_flags=$extra_tool_flags}"]
if ![jit_check_compile "$prog" "initial compilation" \
upvar 1 name name
if ![jit_check_compile "$name" "initial compilation" \
$output_file $comp_output] then {
return
}