aboutsummaryrefslogtreecommitdiff
path: root/test/unit/testtest_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-01 11:07:08 +0300
committerZyX <kp-pav@yandex.ru>2017-04-01 11:07:08 +0300
commit933d60bc2356c1e22b8dbf8f8847c5323bc1f7a7 (patch)
tree6ea6262e09c48c633243dd7e0355b87a1b5603bc /test/unit/testtest_spec.lua
parent8de53157b691dd4ce604a5be0e2d9c3b6014bfdb (diff)
downloadrneovim-933d60bc2356c1e22b8dbf8f8847c5323bc1f7a7.tar.gz
rneovim-933d60bc2356c1e22b8dbf8f8847c5323bc1f7a7.tar.bz2
rneovim-933d60bc2356c1e22b8dbf8f8847c5323bc1f7a7.zip
unittests: Do not hang when error message is too long
Diffstat (limited to 'test/unit/testtest_spec.lua')
-rw-r--r--test/unit/testtest_spec.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/testtest_spec.lua b/test/unit/testtest_spec.lua
new file mode 100644
index 0000000000..2397081b09
--- /dev/null
+++ b/test/unit/testtest_spec.lua
@@ -0,0 +1,13 @@
+local helpers = require('test.unit.helpers')(after_each)
+local assert = require('luassert')
+local itp = helpers.gen_itp(it)
+
+-- 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)
+end)