Skip to content

Commit 174065f

Browse files
committed
native: skip linux.vv too, for the sanitized jobs (similar to libc.vv)
1 parent b421e67 commit 174065f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

vlib/v/gen/native/tests/linux.vv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
fn test_for_c_in_string() {
32
$if windows {
43
println('0')
@@ -17,7 +16,8 @@ fn test_for_c_in_string() {
1716
}
1817

1918
fn test_c_extern_vars() {
20-
C.fprintf(C.stdout, 'abc'.str, 3)
19+
s := 'abc\n'
20+
C.fprintf(C.stdout, s.str, 3)
2121
}
2222

2323
fn main() {

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ fn test_native() {
5656
assert false
5757
}
5858

59+
skip_vv := os.getenv('VNATIVE_SKIP_LIBC_VV') != ''
60+
5961
bench.set_total_expected_steps(tests.len)
6062
for test in tests {
61-
if test == 'libc.vv' {
63+
if skip_vv && test in ['libc.vv', 'linux.vv'] {
6264
// TODO: remove the skip here, when the native backend is more advanced
63-
if os.getenv('VNATIVE_SKIP_LIBC_VV') != '' {
64-
println('>>> SKIPPING ${test} since VNATIVE_SKIP_LIBC_VV is defined')
65-
continue
66-
}
65+
println('>>> SKIPPING ${test} since VNATIVE_SKIP_LIBC_VV is defined')
66+
continue
6767
}
6868
if test == 'fibonacci_native.vv' || test.contains('linux') {
6969
if user_os == 'windows' {

0 commit comments

Comments
 (0)