diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/error.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/error.lua b/tests/error.lua index c4a64e3..91015d8 100644 --- a/tests/error.lua +++ b/tests/error.lua | |||
@@ -4,8 +4,7 @@ | |||
4 | -- Note: this code is supposed to end in errors; not included in 'make test' | 4 | -- Note: this code is supposed to end in errors; not included in 'make test' |
5 | -- | 5 | -- |
6 | 6 | ||
7 | local lanes = require "lanes" | 7 | local lanes = require "lanes".configure() |
8 | lanes.configure() | ||
9 | 8 | ||
10 | local function lane() | 9 | local function lane() |
11 | 10 | ||
@@ -32,7 +31,7 @@ local h= lgen() | |||
32 | local _,err,stack= h:join() -- wait for the lane (no automatic error propagation) | 31 | local _,err,stack= h:join() -- wait for the lane (no automatic error propagation) |
33 | 32 | ||
34 | if err then | 33 | if err then |
35 | assert( type(stack)=="table" ) | 34 | assert( type(stack)=="table" ) -- only true if lanes was compiled with ERROR_FULL_STACK == 1 |
36 | io.stderr:write( "Lane error: "..tostring(err).."\n" ) | 35 | io.stderr:write( "Lane error: "..tostring(err).."\n" ) |
37 | 36 | ||
38 | io.stderr:write( "\t", table.concat(stack,"\n\t"), "\n" ); | 37 | io.stderr:write( "\t", table.concat(stack,"\n\t"), "\n" ); |