Skip to content
Snippets Groups Projects
Commit 2ea3b40b authored by Alexandr Lyapunov's avatar Alexandr Lyapunov
Browse files

fixed gh-562 : added expected-to-fail test of lua finalizers table

parent e0ff949a
No related branches found
No related tags found
No related merge requests found
Expected error: <type 'exceptions.OSError'>
import os
import sys
import re
import yaml
from lib.tarantool_server import TarantoolServer
server = TarantoolServer(server.ini)
server.script = 'box/lua/finalizers.lua'
server.vardir = os.path.join(server.vardir, 'finalizers')
try:
server.deploy()
except:
print "Expected error:", sys.exc_info()[0]
else:
print "Error! exception did not occured"
#!/usr/bin/env tarantool
--# setopt delimiter ';'
function on_gc(t)
end;
function test_finalizers()
local result = {}
local i = 1
local ffi = require('ffi')
while true do
result[i] = ffi.gc(ffi.cast('void *', NULL), on_gc)
i = i + 1
end
return "done"
end;
--# setopt delimiter ''
test_finalizers()
test_finalizers()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment