From bfdc7a92c4e3e99522abb6d90ef2cbb021f36fc8 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 5 Jun 2025 16:03:22 +0200 Subject: Change lane:join() return values * when no error is raised in the lane, lane:join() now precedes the lane returned values with true * lane body is no longer forced to return something when used with join() * adjusted all relevant unit tests accordingly --- tests/launchtest.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/launchtest.lua') diff --git a/tests/launchtest.lua b/tests/launchtest.lua index 57411e1..cdd6ffc 100644 --- a/tests/launchtest.lua +++ b/tests/launchtest.lua @@ -69,8 +69,8 @@ else io.stderr:write( N.." lanes launched.\n" ) for i=1,N do - local rc= t[i]:join() - assert( rc==i ) + local r,rc = t[i]:join() + assert( r == true and rc == i ) end io.stderr:write( N.." lanes finished.\n" ) -- cgit v1.2.3-55-g6feb