From b33d97621d9e0c73d9512e74b44407394858eb08 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Fri, 2 Oct 2015 18:56:57 -0700 Subject: 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 --- lib/pure/coro.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/coro.nim b/lib/pure/coro.nim index 8fa529474..c5724f26f 100644 --- a/lib/pure/coro.nim +++ b/lib/pure/coro.nim @@ -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() -- cgit 1.4.1-2-gfad0