Skip to content

Commit c2bc9f4

Browse files
committed
sync: only run channel_select_test.v when VTEST_RUN_FLAKY=1
1 parent e4065bd commit c2bc9f4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vlib/sync/channel_select_test.v

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,17 @@ module sync
77
// For that, please look at `channel_select_2_test.v` or `channel_select_3_test.v`
88
// This test case uses the implementation in `sync/channels.v` directly
99
// in order to test it independently from the support in the core language
10+
import os
1011
import time
1112

13+
fn test_should_run_flaky_test() {
14+
if os.getenv('VTEST_RUN_FLAKY') != '1' {
15+
eprintln('> skipping running flaky test, set VTEST_RUN_FLAKY to 1, to run it')
16+
exit(0)
17+
}
18+
assert true
19+
}
20+
1221
fn do_rec_i64(mut ch Channel) {
1322
mut sum := i64(0)
1423
for _ in 0 .. 300 {

0 commit comments

Comments
 (0)