diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-07-04 09:46:53 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-07-04 09:46:53 +0200 |
| commit | f3b7facea8de585dda1d4f5bd1d9716b40b1ce94 (patch) | |
| tree | 7e563c383f381ef27872ae8bead86165c26a3cc7 /tests | |
| parent | f37a7c2334fdfb8f30d0b76ecf25aff484adec28 (diff) | |
| download | lanes-f3b7facea8de585dda1d4f5bd1d9716b40b1ce94.tar.gz lanes-f3b7facea8de585dda1d4f5bd1d9716b40b1ce94.tar.bz2 lanes-f3b7facea8de585dda1d4f5bd1d9716b40b1ce94.zip | |
get_debug_threadname → get_threadname
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) |
