Message ID | 1416965664-15360-2-git-send-email-dmalcolm@redhat.com |
---|---|
State | New |
Headers | show |
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 --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 }