only compile coro.nim by avoiding "when isMainModule" string match in
testament/tester FAIL: coro.nim Test "lib/pure/coro.nim" in category "lib" Failure: reOutputsDiffer Expected: Gotten: c1 c2 c2 c1 c2 c1 c2 c1 c1 exits c2 exits done 1100220033
This commit is contained in:
parent
2fbdf9320c
commit
b33d97621d
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ proc wait*(c: proc(), interval=0.01) =
|
|||
while alive(c):
|
||||
suspend interval
|
||||
|
||||
when isMainModule:
|
||||
when defined(nimCoroutines) and isMainModule:
|
||||
var stackCheckValue = 1100220033
|
||||
proc c2()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue