diff options
Diffstat (limited to 'tests/appendud.lua')
-rw-r--r-- | tests/appendud.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/appendud.lua b/tests/appendud.lua index f510c8b..2a8c8ce 100644 --- a/tests/appendud.lua +++ b/tests/appendud.lua | |||
@@ -42,14 +42,14 @@ function appendud(tab, ud) | |||
42 | -- ('tab' is passed over lanes by value, not by reference) | 42 | -- ('tab' is passed over lanes by value, not by reference) |
43 | end | 43 | end |
44 | 44 | ||
45 | local t,err= lanes.gen( "base,io", appendud )( _tab, _ud ) -- create & launch a thread | 45 | local t,err= lanes.gen( "base,io", { name = 'auto'}, appendud )( _tab, _ud ) -- create & launch a thread |
46 | assert(t) | 46 | assert(t) |
47 | assert(not err) | 47 | assert(not err) |
48 | 48 | ||
49 | -- test | 49 | -- test |
50 | -- print("t:join()") | 50 | -- print("t:join()") |
51 | a,b,c = t[1],t[2],t[3] -- Need to explicitly wait for the thread, since 'ipairs()' does not | 51 | a,b,c = t[1],t[2],t[3] -- Need to explicitly wait for the thread, since 'ipairs()' does not |
52 | --a,b,c = t:join() -- Need to explicitly wait for the thread, since 'ipairs()' does not | 52 | --r,a,b,c = t:join() -- Need to explicitly wait for the thread, since 'ipairs()' does not |
53 | -- value the '__index' metamethod (wouldn't it be cool if it did..?) | 53 | -- value the '__index' metamethod (wouldn't it be cool if it did..?) |
54 | 54 | ||
55 | print(a,b,c) | 55 | print(a,b,c) |