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

ci: add more details for diagnosing the sporadically failing init_global_test.v

This commit is contained in:
Delyan Angelov 2021-09-05 16:18:36 +03:00
parent f1cba44154
commit 6b55b6d417
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -121,6 +121,7 @@ fn test_global_shared() {
}
sem.post()
t.wait()
eprintln('> a: $a | b: $b')
assert (a == 13.75 && b == -35.125) || (a == -35.125 && b == 13.75)
}
@ -170,5 +171,6 @@ fn test_global_mutex() {
assert (f1 == 17.0 && f2 == 34.0625) || (f1 == 34.0625 && f2 == 17.0)
mtx.runlock()
n := t.wait()
eprintln('> n: $n | f1: $f1 | $f2: $f2')
assert n > 0
}