Skip to content

Commit cfeb1bb

Browse files
committed
ci: skip fibonacci_native.vv on windows for now
1 parent 5698a6a commit cfeb1bb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

vlib/v/gen/native/tests/native_test.v

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ import benchmark
44
import term
55

66
const is_verbose = os.getenv('VTEST_SHOW_CMD') != ''
7+
const user_os = os.user_os()
78

89
// TODO: some logic copy pasted from valgrind_test.v and compiler_test.v, move to a module
910
fn test_native() {
1011
$if arm64 {
1112
eprintln('>> skipping testing on ARM for now')
1213
return
1314
}
14-
$if freebsd || openbsd {
15+
if user_os in ['freebsd', 'openbsd'] {
1516
eprintln('>> skipping testing on FreeBSD/OpenBSD for now')
1617
return
1718
}
@@ -29,7 +30,7 @@ fn test_native() {
2930
}
3031

3132
os.chdir(wrkdir) or {}
32-
tests := files.filter(it.ends_with('.vv'))
33+
tests := files.filter(it.ends_with('.vv')).sorted()
3334
if tests.len == 0 {
3435
println('no native tests found')
3536
assert false
@@ -44,6 +45,12 @@ fn test_native() {
4445
continue
4546
}
4647
}
48+
if test == 'fibonacci_native.vv' {
49+
if user_os == 'windows' {
50+
println('>>> SKIPPING ${test} on windows for now')
51+
continue
52+
}
53+
}
4754

4855
bench.step()
4956
full_test_path := os.real_path(os.join_path(dir, test))

0 commit comments

Comments
 (0)