From 2856bca6bc6ad26d0e3b243c260ff3959e6f1b95 Mon Sep 17 00:00:00 2001 From: dmalcolm 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218225 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 3be4a88fa579..94ca3b6292f9 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 531e92971fb2..135dbad94efe 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.47.3