diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/basic.lua b/tests/basic.lua index f44c75f..820d3c8 100644 --- a/tests/basic.lua +++ b/tests/basic.lua | |||
@@ -501,12 +501,12 @@ end) | |||
501 | h= S { 12, 13, 14 } -- execution starts, h[1..3] will get the return values | 501 | h= S { 12, 13, 14 } -- execution starts, h[1..3] will get the return values |
502 | -- wait a bit so that the lane has a chance to set its debug name | 502 | -- wait a bit so that the lane has a chance to set its debug name |
503 | SLEEP(0.5) | 503 | SLEEP(0.5) |
504 | print("joining with '" .. h:get_debug_threadname() .. "'") | 504 | print("joining with '" .. h:get_threadname() .. "'") |
505 | local a,b,c,d= h:join() | 505 | local a,b,c,d= h:join() |
506 | if h.status == "error" then | 506 | if h.status == "error" then |
507 | print(h:get_debug_threadname(), "error: " , a, b, c, d) | 507 | print(h:get_threadname(), "error: " , a, b, c, d) |
508 | else | 508 | else |
509 | print(h:get_debug_threadname(), a,b,c,d) | 509 | print(h:get_threadname(), a,b,c,d) |
510 | assert(a==14) | 510 | assert(a==14) |
511 | assert(b==13) | 511 | assert(b==13) |
512 | assert(c==12) | 512 | assert(c==12) |