Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
c80e9416
Commit
c80e9416
authored
5 years ago
by
Kirill Yukhin
Browse files
Options
Downloads
Patches
Plain Diff
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
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/box/misc.result
+14
-0
14 additions, 0 deletions
test/box/misc.result
test/box/misc.test.lua
+8
-0
8 additions, 0 deletions
test/box/misc.test.lua
with
22 additions
and
0 deletions
test/box/misc.result
+
14
−
0
View file @
c80e9416
...
@@ -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
...
This diff is collapsed.
Click to expand it.
test/box/misc.test.lua
+
8
−
0
View file @
c80e9416
...
@@ -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'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment