Skip to content
Snippets Groups Projects
Commit 8e2d5551 authored by Kirill Yukhin's avatar Kirill Yukhin
Browse files

Add missing test for _say patch

It turned out that patch d0e38d59 wasn't accompanied
w/ a test. Add proper check.

(cherry picked from commit c80e9416)
parent cd627f26
No related branches found
No related tags found
No related merge requests found
......@@ -1310,3 +1310,17 @@ format[1].is_nullable = true
tuple_format = box.internal.new_tuple_format(format)
---
...
--
-- Test that calling _say using FFI w/ null filepointer doesn't
-- segfault
--
box.cfg{}
---
...
local ffi = require'ffi' ffi.C._say(ffi.C.S_WARN, nil, 0, nil, "%s", "test log")
---
...
test_run:grep_log('default', 'test log')
---
- test log
...
......@@ -375,3 +375,11 @@ tuple_format = box.internal.new_tuple_format(box.space._space:format())
-- Check is_nullable option fo field
format[1].is_nullable = true
tuple_format = box.internal.new_tuple_format(format)
--
-- Test that calling _say using FFI w/ null filepointer doesn't
-- segfault
--
box.cfg{}
local ffi = require'ffi' ffi.C._say(ffi.C.S_WARN, nil, 0, nil, "%s", "test log")
test_run:grep_log('default', 'test log')
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