1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: autofree: use -experimental flag

This commit is contained in:
Alexander Medvednikov 2020-08-28 10:22:28 +02:00
parent 0890562663
commit 789674bd5a

View File

@ -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()