diff options
Diffstat (limited to 'tests/finalizer.lua')
-rw-r--r-- | tests/finalizer.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/finalizer.lua b/tests/finalizer.lua index 6f186ab..dc9ed34 100644 --- a/tests/finalizer.lua +++ b/tests/finalizer.lua | |||
@@ -31,6 +31,7 @@ local function lane() | |||
31 | io.stderr:write( "File "..FN.." created\n" ) | 31 | io.stderr:write( "File "..FN.." created\n" ) |
32 | 32 | ||
33 | if which==0 then | 33 | if which==0 then |
34 | print "you loose" | ||
34 | error("aa") -- exception here; the value needs NOT be a string | 35 | error("aa") -- exception here; the value needs NOT be a string |
35 | end | 36 | end |
36 | 37 | ||
@@ -55,6 +56,7 @@ cleanup= function(err) | |||
55 | end | 56 | end |
56 | 57 | ||
57 | local _,err2= os.remove(FN) | 58 | local _,err2= os.remove(FN) |
59 | print( "file removal result: ", tostring( err2)) | ||
58 | assert(not err2) -- if this fails, it will be shown in the calling script | 60 | assert(not err2) -- if this fails, it will be shown in the calling script |
59 | -- as an error from the lane itself | 61 | -- as an error from the lane itself |
60 | 62 | ||