aboutsummaryrefslogtreecommitdiff
path: root/tests/nameof.lua
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-14 14:53:09 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-14 14:53:09 +0100
commit512f4c0b46ea5cc359e673b7379cd81925863121 (patch)
tree1e72167d8d63f44109719db9643d4c0445b17d57 /tests/nameof.lua
parent0aa030db022c57947afbae3b97038a403973e3cd (diff)
downloadlanes-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.lua2
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()
18end 18end
19 19
20-- start the lane without any library 20-- start the lane without any library
21local h = lanes.gen(nil, body)() 21local h = lanes.gen(nil, { name = 'auto' }, body)()
22SLEEP(0.1) 22SLEEP(0.1)
23print("Name of lane: ", lanes.nameof(h), "("..h.status..")") 23print("Name of lane: ", lanes.nameof(h), "("..h.status..")")
24assert(h.status == "running") 24assert(h.status == "running")