Skip to content
Snippets Groups Projects
Commit be2ce212 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

tests: add line number filters (cherry-picked from arm7-experimental branch)

parent 289de5f1
No related branches found
No related tags found
No related merge requests found
dofile('utils.lua')
---
...
test_run = require('test_run').new()
---
...
test_run:cmd("push filter '(error: .builtin/.*[.]lua):[0-9]+' to '\\1'")
---
- true
...
# Tree single-part unique
---
...
......@@ -891,7 +898,7 @@ space.index['primary']:pairs({}, {iterator = -666 })
-- Test cases for #123: box.index.count does not check arguments properly
space.index['primary']:pairs(function() end, { iterator = box.index.EQ })
---
- error: 'builtin/msgpackffi.lua:226: can not encode Lua type: ''function'''
- error: 'builtin/msgpackffi.lua: can not encode Lua type: ''function'''
...
-- Check that iterators successfully invalidated when index deleted
gen, param, state = space.index['i1']:pairs(nil, { iterator = box.index.GE })
......
dofile('utils.lua')
test_run = require('test_run').new()
test_run:cmd("push filter '(error: .builtin/.*[.]lua):[0-9]+' to '\\1'")
# Tree single-part unique
space = box.schema.space.create('tweedledum')
......
test_run = require('test_run').new()
---
...
test_run:cmd("push filter '(error: .builtin/.*[.]lua):[0-9]+' to '\\1'")
---
- true
...
space = box.schema.space.create('tweedledum')
---
...
......@@ -586,7 +593,7 @@ space.index['i1']:count()
-- Test cases for #123: box.index.count does not check arguments properly
space.index['i1']:count(function() end)
---
- error: 'builtin/msgpackffi.lua:226: can not encode Lua type: ''function'''
- error: 'builtin/msgpackffi.lua: can not encode Lua type: ''function'''
...
space:drop()
---
......
test_run = require('test_run').new()
test_run:cmd("push filter '(error: .builtin/.*[.]lua):[0-9]+' to '\\1'")
space = box.schema.space.create('tweedledum')
tmp = space:create_index('primary', { type = 'hash', parts = {1, 'str'}, unique = true })
tmp = space:create_index('minmax', { type = 'tree', parts = {2, 'str', 3, 'str'}, unique = true })
......
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