aboutsummaryrefslogtreecommitdiff
path: root/tests/finalizer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/finalizer.lua')
-rw-r--r--tests/finalizer.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/finalizer.lua b/tests/finalizer.lua
index dc9ed34..0dc51a6 100644
--- a/tests/finalizer.lua
+++ b/tests/finalizer.lua
@@ -28,7 +28,9 @@ local function lane()
28 28
29 f:write( "Test file that should get removed." ) 29 f:write( "Test file that should get removed." )
30 30
31 io.stderr:write( "File "..FN.." created\n" ) 31 io.stderr:write( "File "..FN.." created\n" )
32 -- don't forget to close the file immediately, else we won't be able to delete it until f is collected
33 f:close()
32 34
33 if which==0 then 35 if which==0 then
34 print "you loose" 36 print "you loose"