aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_assert.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-06-15 20:52:27 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-06-15 21:48:27 -0400
commitc6c5754a86e091bce0e8d5342576bd96b5cc275f (patch)
tree1b6a536f2b3b1acfe4587495b3fa330296c85460 /src/nvim/testdir/test_assert.vim
parent1abfeff97840992b3fc85d72e917ecde1acbb781 (diff)
downloadrneovim-c6c5754a86e091bce0e8d5342576bd96b5cc275f.tar.gz
rneovim-c6c5754a86e091bce0e8d5342576bd96b5cc275f.tar.bz2
rneovim-c6c5754a86e091bce0e8d5342576bd96b5cc275f.zip
vim-patch:8.1.0044: if a test function exists Vim this may go unnoticed
Problem: If a test function exists Vim this may go unnoticed. Solution: Check for a test funtion quitting Vim. Fix tests that did exit Vim. https://github.com/vim/vim/commit/8903676d3d4c3fcb37d2a55c67370f30806b1626 Restore test_assert.vim to run Test_zz_quit_detected().
Diffstat (limited to 'src/nvim/testdir/test_assert.vim')
-rw-r--r--src/nvim/testdir/test_assert.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_assert.vim b/src/nvim/testdir/test_assert.vim
new file mode 100644
index 0000000000..fe87bd6ef5
--- /dev/null
+++ b/src/nvim/testdir/test_assert.vim
@@ -0,0 +1,7 @@
+" Test that the methods used for testing work.
+
+" Must be last.
+func Test_zz_quit_detected()
+ " Verify that if a test function ends Vim the test script detects this.
+ quit
+endfunc