diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-14 14:53:09 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-14 14:53:09 +0100 |
commit | 512f4c0b46ea5cc359e673b7379cd81925863121 (patch) | |
tree | 1e72167d8d63f44109719db9643d4c0445b17d57 /tests/nameof.lua | |
parent | 0aa030db022c57947afbae3b97038a403973e3cd (diff) | |
download | lanes-512f4c0b46ea5cc359e673b7379cd81925863121.tar.gz lanes-512f4c0b46ea5cc359e673b7379cd81925863121.tar.bz2 lanes-512f4c0b46ea5cc359e673b7379cd81925863121.zip |
Give a name to all lanes in the tests
Diffstat (limited to 'tests/nameof.lua')
-rw-r--r-- | tests/nameof.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/nameof.lua b/tests/nameof.lua index 1abcf3d..fb7332a 100644 --- a/tests/nameof.lua +++ b/tests/nameof.lua | |||
@@ -18,7 +18,7 @@ local body = function() | |||
18 | end | 18 | end |
19 | 19 | ||
20 | -- start the lane without any library | 20 | -- start the lane without any library |
21 | local h = lanes.gen(nil, body)() | 21 | local h = lanes.gen(nil, { name = 'auto' }, body)() |
22 | SLEEP(0.1) | 22 | SLEEP(0.1) |
23 | print("Name of lane: ", lanes.nameof(h), "("..h.status..")") | 23 | print("Name of lane: ", lanes.nameof(h), "("..h.status..")") |
24 | assert(h.status == "running") | 24 | assert(h.status == "running") |