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/perftest.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/perftest.lua') diff --git a/tests/perftest.lua b/tests/perftest.lua index fe43cca..35e164d 100644 --- a/tests/perftest.lua +++ b/tests/perftest.lua @@ -175,9 +175,9 @@ else -- Make sure all lanes finished -- for i=1,N do - local tmp= t[i]:join() + local r, tmp = t[i]:join() -- this assert will trigger if you change M to values below 1000 in order to solve C stack overflow - assert( type(tmp)=="table" and tmp[1]==2 and tmp[168]==997 ) + assert( r == true and type(tmp) == "table" and tmp[1] == 2 and tmp[168] == 997 ) end end -- cgit v1.2.3-55-g6feb