diff --git a/vlib/v/gen/native/tests/linux.vv b/vlib/v/gen/native/tests/linux.vv index d24e5b38e2..cb946c1483 100644 --- a/vlib/v/gen/native/tests/linux.vv +++ b/vlib/v/gen/native/tests/linux.vv @@ -1,4 +1,3 @@ - fn test_for_c_in_string() { $if windows { println('0') @@ -17,7 +16,8 @@ fn test_for_c_in_string() { } fn test_c_extern_vars() { - C.fprintf(C.stdout, 'abc'.str, 3) + s := 'abc\n' + C.fprintf(C.stdout, s.str, 3) } fn main() { diff --git a/vlib/v/gen/native/tests/native_test.v b/vlib/v/gen/native/tests/native_test.v index af1651abb5..485d53bae4 100644 --- a/vlib/v/gen/native/tests/native_test.v +++ b/vlib/v/gen/native/tests/native_test.v @@ -56,14 +56,14 @@ fn test_native() { assert false } + skip_vv := os.getenv('VNATIVE_SKIP_LIBC_VV') != '' + bench.set_total_expected_steps(tests.len) for test in tests { - if test == 'libc.vv' { + if skip_vv && test in ['libc.vv', 'linux.vv'] { // TODO: remove the skip here, when the native backend is more advanced - if os.getenv('VNATIVE_SKIP_LIBC_VV') != '' { - println('>>> SKIPPING ${test} since VNATIVE_SKIP_LIBC_VV is defined') - continue - } + println('>>> SKIPPING ${test} since VNATIVE_SKIP_LIBC_VV is defined') + continue } if test == 'fibonacci_native.vv' || test.contains('linux') { if user_os == 'windows' {