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

fixed gh-1320 long run test hangs on finalizers.test

parent c72b0f8a
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env tarantool #!/usr/bin/env tarantool
env = require('test_run')
test_run = env.new()
test_run:cmd("setopt delimiter ';'")
function on_gc(t) function on_gc(t)
end; end;
...@@ -12,14 +8,12 @@ function test_finalizers() ...@@ -12,14 +8,12 @@ function test_finalizers()
local i = 1 local i = 1
local ffi = require('ffi') local ffi = require('ffi')
while true do while true do
result[i] = ffi.gc(ffi.cast('void *', NULL), on_gc) result[i] = ffi.gc(ffi.cast('void *', 0), on_gc)
i = i + 1 i = i + 1
end end
return "done" return "done"
end; end;
test_run:cmd("setopt delimiter ''")
test_finalizers() test_finalizers()
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