jit.exp: Avoid embedding full paths into test results
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2014 15:48:46 +0000 (15:48 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2014 15:48:46 +0000 (15:48 +0000)
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
gcc/testsuite/jit.dg/jit.exp

index 3be4a88..94ca3b6 100644 (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
index 531e929..135dbad 100644 (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
     }