tests: autofree: use -experimental flag

pull/6245/head
Alexander Medvednikov 2020-08-28 10:22:28 +02:00
parent 0890562663
commit 789674bd5a
1 changed files with 3 additions and 3 deletions

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