diff mbox

[01/05] jit.exp: Avoid embedding full paths into test results

Message ID 1416965664-15360-2-git-send-email-dmalcolm@redhat.com
State New
Headers show

Commit Message

David Malcolm Nov. 26, 2014, 1:34 a.m. UTC
This makes it easier to compare jit.sum files from different runs

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.
---
 gcc/testsuite/jit.dg/jit.exp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Mike Stump Nov. 26, 2014, 4:46 a.m. UTC | #1
On Nov 25, 2014, at 5:34 PM, David Malcolm <dmalcolm@redhat.com> wrote:
> This makes it easier to compare jit.sum files from different runs
> 
> 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.

Ok.
diff mbox

Patch

diff --git a/gcc/testsuite/jit.dg/jit.exp b/gcc/testsuite/jit.dg/jit.exp
index 531e929..135dbad 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
     }