ci: fix tcc compilation of atomic_test.v

Delyan Angelov 2022-04-27 22:50:18 +03:00 committed by Jef Roosens
parent b7f2ef78b2
commit 624f022ddc
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 2 additions and 4 deletions

View File

@ -300,6 +300,7 @@ const c_common_macros = '
#endif
#ifdef __TINYC__
#define _Atomic volatile
#undef EMPTY_STRUCT_DECLARATION
#define EMPTY_STRUCT_DECLARATION voidptr _dummy_pad
#undef EMPTY_ARRAY_OF_ELEMS

View File

@ -1,6 +1,3 @@
import term
import os
import runtime
import time
struct App {
@ -13,7 +10,7 @@ fn test_atomic() {
for i in 0 .. 10 {
go app.run()
}
time.sleep(2 * time.second)
time.sleep(200 * time.millisecond)
println('idx=$app.idx')
assert app.idx == 10
}