1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix tcc compilation of atomic_test.v

This commit is contained in:
Delyan Angelov 2022-04-27 22:50:18 +03:00
parent 7dbfa86f25
commit f53b9b4f12
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
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
}