From 6b55b6d4178d7b97c587be065e8dc4369fb29487 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 5 Sep 2021 16:18:36 +0300 Subject: [PATCH] ci: add more details for diagnosing the sporadically failing init_global_test.v --- vlib/v/tests/init_global_test.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/v/tests/init_global_test.v b/vlib/v/tests/init_global_test.v index cade1893bc..f6cea264d1 100644 --- a/vlib/v/tests/init_global_test.v +++ b/vlib/v/tests/init_global_test.v @@ -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 }