aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
Diffstat (limited to 'testes')
-rw-r--r--testes/api.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/testes/api.lua b/testes/api.lua
index eec9c0ab..dc485240 100644
--- a/testes/api.lua
+++ b/testes/api.lua
@@ -1193,7 +1193,8 @@ do
1193 local a, b = pcall(T.makeCfunc[[ 1193 local a, b = pcall(T.makeCfunc[[
1194 call 0 1 # create resource 1194 call 0 1 # create resource
1195 toclose -1 # mark it to be closed 1195 toclose -1 # mark it to be closed
1196 error # resource is the error object 1196 pushvalue -1 # replicate it as error object
1197 error # resource right after error object
1197 ]], newresource) 1198 ]], newresource)
1198 assert(a == false and b[1] == 11) 1199 assert(a == false and b[1] == 11)
1199 assert(#openresource == 0) -- was closed 1200 assert(#openresource == 0) -- was closed