From a6bd4a0b1d6243c5ab074de4f25986be410cdf1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 14 Mar 2020 22:30:41 +0100 Subject: [PATCH] Fix regression test w.r.t. slightly changed semantics of schedule(). A single call to yield() (which calls schedule() once) is not sufficient anymore to guarantee that both tasks have run far enough. --- tests/issue-161-multiple-joiners.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/issue-161-multiple-joiners.d b/tests/issue-161-multiple-joiners.d index c0ebc78..e1bac30 100644 --- a/tests/issue-161-multiple-joiners.d +++ b/tests/issue-161-multiple-joiners.d @@ -23,6 +23,9 @@ void main() t.join(); }); + // let the outer task run and start the inner task + yield(); + // let the outer task get another execution slice to write to t yield(); assert(t && t.running);