From 789674bd5af8d01a83742c8572012e29e04d89cf Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 28 Aug 2020 10:22:28 +0200 Subject: [PATCH] tests: autofree: use -experimental flag --- vlib/v/tests/valgrind/valgrind_test.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/v/tests/valgrind/valgrind_test.v b/vlib/v/tests/valgrind/valgrind_test.v index a3f1a3d2e0..289798892c 100644 --- a/vlib/v/tests/valgrind/valgrind_test.v +++ b/vlib/v/tests/valgrind/valgrind_test.v @@ -50,8 +50,7 @@ fn test_all() { bench.set_total_expected_steps(tests.len) for test in tests { bench.step() - exe_filename := '$wrkdir/x' - if !test.starts_with('1.') { + if !test.contains('1.') { bench.skip() eprintln(bench.step_message_skip(test)) continue @@ -65,8 +64,9 @@ fn test_all() { } } // + exe_filename := '$wrkdir/x' 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"' + compile_cmd := '$vexe -o $exe_filename -cg -cflags "-w" -experimental -autofree "$full_path_to_source_file"' vprintln('compile cmd: ${util.bold(compile_cmd)}') res := os.exec(compile_cmd) or { bench.fail()