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.
This commit is contained in:
Sönke Ludwig 2020-03-14 22:30:41 +01:00
parent 6a2dfa468b
commit a6bd4a0b1d

View file

@ -23,6 +23,9 @@ void main()
t.join(); 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(); yield();
assert(t && t.running); assert(t && t.running);