Skip to content
Snippets Groups Projects
Commit e99f6cb0 authored by Maksim Kokryashkin's avatar Maksim Kokryashkin Committed by Igor Munkin
Browse files

test: remove finalizers table overflow test

This test is no longer needed in the Tarantool test suite
since it was added to LuaJIT's test suite along with the fix
for the issue mentioned in #3060 in scope of #8825 in commit
tarantool/luajit@7b98314e0dacc7313c061aceeb0a32afd4e8cbce.

Closes #3060
Related to #8825

NO_DOC=Cleanup
NO_TEST=Already included in LuaJIT bump
NO_CHANGELOG=Already included in LuaJIT bump
parent 4b88d5fd
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env tarantool
os.execute("rm -rf vinyl_test")
os.execute("mkdir -p vinyl_test")
box.cfg {
listen = os.getenv("LISTEN"),
memtx_memory = 107374182,
pid_file = "tarantool.pid",
vinyl_dir = "./vinyl_test",
vinyl_read_threads = 3,
vinyl_write_threads = 5,
}
require('console').listen(os.getenv('ADMIN'))
Expected error: <class 'lib.tarantool_server.TarantoolStartError'>
from __future__ import print_function
import os
import sys
import re
import yaml
from lib.tarantool_server import TarantoolServer
server = TarantoolServer(server.ini)
server.script = "long_run-py/lua/finalizers.lua"
server.vardir = os.path.join(server.vardir, "finalizers")
server.crash_expected = True
try:
server.deploy()
except:
print("Expected error:", sys.exc_info()[0])
else:
print("Error! exception did not occur")
#!/usr/bin/env tarantool
local function on_gc()
end;
local function test_finalizers()
local result = {}
local i = 1
local ffi = require('ffi')
while i ~= 0 do
result[i] = ffi.gc(ffi.cast('void *', 0), on_gc)
i = i + 1
end
-- Fake-read 'result' to calm down 'luacheck' complaining that the variable
-- is never used.
assert(#result ~= 0)
return "done"
end;
test_finalizers()
test_finalizers()
[default]
core = tarantool
description = long running tests
script = box.lua
long_run = finalizers.test.py
valgrind_disabled =
release_disabled =
use_unix_sockets_iproto = True
is_parallel = True
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