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

tests: enable running fmt_vlib_test.v on != freebsd platforms again

This commit is contained in:
Delyan Angelov 2020-08-25 19:09:47 +03:00
parent e3f79df3ac
commit cc82ed28f8

View File

@ -14,7 +14,7 @@ const (
) )
fn test_vlib_fmt() { fn test_vlib_fmt() {
$if !freebsd { $if !vfmt_everything ? {
return return
} }
fmt_message := "checking that all V source files are vfmt'ed" fmt_message := "checking that all V source files are vfmt'ed"
@ -30,7 +30,8 @@ fn test_vlib_fmt() {
'' ''
} }
mut fmt_bench := benchmark.new_benchmark() mut fmt_bench := benchmark.new_benchmark()
input_files := os.walk_ext('$vroot/vlib/v/', '.v') os.chdir(vroot)
input_files := os.walk_ext('vlib/v/', '.v').filter(!it.contains('/tests/'))
fmt_bench.set_total_expected_steps(input_files.len) fmt_bench.set_total_expected_steps(input_files.len)
for istep, ipath in input_files { for istep, ipath in input_files {
fmt_bench.cstep = istep fmt_bench.cstep = istep