From ceca1547fbf2a68400ad4d26a5f28e122836639d Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 25 Aug 2020 15:46:03 +0300 Subject: [PATCH] valgrind: fix valgrind_test.v --- ...l_vars.vv => fn_with_return_should_free_local_vars.v} | 0 .../{strings_and_arrays.vv => strings_and_arrays.v} | 0 .../v/tests/valgrind/{struct_field.vv => struct_field.v} | 0 vlib/v/tests/valgrind/valgrind_test.v | 9 +++++---- 4 files changed, 5 insertions(+), 4 deletions(-) rename vlib/v/tests/valgrind/{fn_with_return_should_free_local_vars.vv => fn_with_return_should_free_local_vars.v} (100%) rename vlib/v/tests/valgrind/{strings_and_arrays.vv => strings_and_arrays.v} (100%) rename vlib/v/tests/valgrind/{struct_field.vv => struct_field.v} (100%) diff --git a/vlib/v/tests/valgrind/fn_with_return_should_free_local_vars.vv b/vlib/v/tests/valgrind/fn_with_return_should_free_local_vars.v similarity index 100% rename from vlib/v/tests/valgrind/fn_with_return_should_free_local_vars.vv rename to vlib/v/tests/valgrind/fn_with_return_should_free_local_vars.v diff --git a/vlib/v/tests/valgrind/strings_and_arrays.vv b/vlib/v/tests/valgrind/strings_and_arrays.v similarity index 100% rename from vlib/v/tests/valgrind/strings_and_arrays.vv rename to vlib/v/tests/valgrind/strings_and_arrays.v diff --git a/vlib/v/tests/valgrind/struct_field.vv b/vlib/v/tests/valgrind/struct_field.v similarity index 100% rename from vlib/v/tests/valgrind/struct_field.vv rename to vlib/v/tests/valgrind/struct_field.v diff --git a/vlib/v/tests/valgrind/valgrind_test.v b/vlib/v/tests/valgrind/valgrind_test.v index 624c56928d..df426016fe 100644 --- a/vlib/v/tests/valgrind/valgrind_test.v +++ b/vlib/v/tests/valgrind/valgrind_test.v @@ -6,9 +6,9 @@ import v.util.vtest const ( skip_valgrind_files = [ - 'vlib/v/tests/valgrind/struct_field.vv', - 'vlib/v/tests/valgrind/fn_returning_string_param.vv', - 'vlib/v/tests/valgrind/fn_with_return_should_free_local_vars.vv', + 'vlib/v/tests/valgrind/struct_field.v', + 'vlib/v/tests/valgrind/fn_returning_string_param.v', + 'vlib/v/tests/valgrind/fn_with_return_should_free_local_vars.v', ] ) @@ -59,7 +59,8 @@ fn test_all() { } } // - compile_cmd := '$vexe -o $exe_filename -cg -cflags "-w" -autofree $test' + full_path_to_source_file := os.join_path(vroot, test) + compile_cmd := '$vexe -o $exe_filename -cg -cflags "-w" -autofree "$full_path_to_source_file"' vprintln('compile cmd: ${util.bold(compile_cmd)}') res := os.exec(compile_cmd) or { bench.fail()