Skip to content
Snippets Groups Projects
Commit c80e9416 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.
parent 5a0cfe02
No related branches found
No related tags found
No related merge requests found
...@@ -1312,3 +1312,17 @@ format[1].is_nullable = true ...@@ -1312,3 +1312,17 @@ format[1].is_nullable = true
tuple_format = box.internal.new_tuple_format(format) 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()) ...@@ -375,3 +375,11 @@ tuple_format = box.internal.new_tuple_format(box.space._space:format())
-- Check is_nullable option fo field -- Check is_nullable option fo field
format[1].is_nullable = true format[1].is_nullable = true
tuple_format = box.internal.new_tuple_format(format) 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