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:
Aman Gupta
2015-10-02 18:56:57 -07:00
parent 2fbdf9320c
commit b33d97621d

View File

@@ -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()