jit.exp: Avoid embedding full paths into test results
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 1 Dec 2014 15:48:46 +0000 (15:48 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
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.

From-SVN: r218225

gcc/testsuite/ChangeLog
gcc/testsuite/jit.dg/jit.exp

index 3be4a88fa5792343dcb456f3a6f567a7cd3a3bac..94ca3b6292f9b4d1337344243f008b2fdf42b580 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 531e92971fb22a0ddef116524291769a7a030f2a..135dbad94efe64f68f7d426ca30f1948f74d85d0 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
     }