2024-04-08 02:03:20 -07:00
|
|
|
local t = require('test.unit.testutil')(after_each)
|
2017-04-01 01:07:08 -07:00
|
|
|
local assert = require('luassert')
|
2017-04-01 01:19:41 -07:00
|
|
|
|
2024-04-08 02:03:20 -07:00
|
|
|
local itp = t.gen_itp(it)
|
2017-04-01 01:07:08 -07:00
|
|
|
|
2024-04-08 02:03:20 -07:00
|
|
|
local sc = t.sc
|
2017-04-01 02:25:10 -07:00
|
|
|
|
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)
|