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:
parent
6a2dfa468b
commit
a6bd4a0b1d
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue