aboutsummaryrefslogtreecommitdiff
path: root/tests/cyclic.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cyclic.lua')
-rw-r--r--tests/cyclic.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cyclic.lua b/tests/cyclic.lua
index ed4bdba..ca4b9f5 100644
--- a/tests/cyclic.lua
+++ b/tests/cyclic.lua
@@ -31,7 +31,7 @@ local function lane1()
31 assert( b[1]==a ) 31 assert( b[1]==a )
32 return true 32 return true
33end 33end
34local L1= lanes.gen( "io", lane1 )() 34local L1= lanes.gen( "io", { name = 'auto' }, lane1 )()
35 -- ...running 35 -- ...running
36 36
37-- Getting the tables as arguments should also keep the linkage 37-- Getting the tables as arguments should also keep the linkage
@@ -42,7 +42,7 @@ local function lane2( aa, bb )
42 assert( bb[1]==aa ) 42 assert( bb[1]==aa )
43 return true 43 return true
44end 44end
45local L2= lanes.gen( "io", lane2 )( a, b ) 45local L2= lanes.gen( "io", { name = 'auto' }, lane2 )( a, b )
46 -- ...running 46 -- ...running
47 47
48-- Really unnecessary, but let's try a directly recursive table 48-- Really unnecessary, but let's try a directly recursive table
@@ -55,7 +55,7 @@ local function lane3( cc )
55 assert( cc and cc.a==cc ) 55 assert( cc and cc.a==cc )
56 return true 56 return true
57end 57end
58local L3= lanes.gen("io", lane3)(c) 58local L3= lanes.gen("io", { name = 'auto' }, lane3)(c)
59 59
60-- Without a wait, exit from the main lane will close the process 60-- Without a wait, exit from the main lane will close the process
61-- 61--