From 81f263694d6451a17f7d6d3753fae85a01243619 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 1 Dec 2014 15:48:46 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/jit.dg/jit.exp | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3be4a88fa57..94ca3b6292f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-12-01 David Malcolm + + * 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 PR sanitizer/64121 diff --git a/gcc/testsuite/jit.dg/jit.exp b/gcc/testsuite/jit.dg/jit.exp index 531e92971fb..135dbad94ef 100644 --- a/gcc/testsuite/jit.dg/jit.exp +++ b/gcc/testsuite/jit.dg/jit.exp @@ -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 } -- 2.30.2