diff --git a/test/box/misc.result b/test/box/misc.result index 9e93d8fbf154e36c47c91659b390c0d3f7e27102..204c2671bfe17568bea26bfc8ec9c5656c9793f9 100644 --- a/test/box/misc.result +++ b/test/box/misc.result @@ -1312,3 +1312,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 +... diff --git a/test/box/misc.test.lua b/test/box/misc.test.lua index a7777777411eef1b46f8667ee7a927f35d99eb19..cc223b2eff995f2322d4153b709d993fdf1b739a 100644 --- a/test/box/misc.test.lua +++ b/test/box/misc.test.lua @@ -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')