2017-04-01 01:07:08 -07:00
|
|
|
local helpers = require('test.unit.helpers')(after_each)
|
|
|
|
local assert = require('luassert')
|
2017-04-01 01:19:41 -07:00
|
|
|
|
2017-04-01 01:07:08 -07:00
|
|
|
local itp = helpers.gen_itp(it)
|
|
|
|
|
2017-04-01 02:25:10 -07:00
|
|
|
local sc = helpers.sc
|
|
|
|
|
2017-04-01 01:07:08 -07:00
|
|
|
-- All of the below tests must fail. Check how exactly they fail.
|
|
|
|
if os.getenv('NVIM_TEST_RUN_TESTTEST') ~= '1' then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
describe('test code', function()
|
|
|
|
itp('does not hang when working with lengthy errors', function()
|
|
|
|
assert.just_fail(('x'):rep(65536))
|
|
|
|
end)
|
2017-04-01 02:25:10 -07:00
|
|
|
itp('shows trace after exiting abnormally', function()
|
|
|
|
sc.exit(0)
|
|
|
|
end)
|
2017-04-01 01:07:08 -07:00
|
|
|
end)
|