aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-14 18:19:56 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-15 01:27:30 -0400
commit0bdd4e8393636ad7c7d013df4c361264b1c048f1 (patch)
tree836695f4259951e6a15e29edd87bb965ad85de32
parent8e2a892e709df140d321b8058be041c0fe111ebc (diff)
downloadrneovim-0bdd4e8393636ad7c7d013df4c361264b1c048f1.tar.gz
rneovim-0bdd4e8393636ad7c7d013df4c361264b1c048f1.tar.bz2
rneovim-0bdd4e8393636ad7c7d013df4c361264b1c048f1.zip
oldtests: finish port of 8.0.1224
-rw-r--r--src/nvim/testdir/test_autocmd.vim5
-rw-r--r--test/functional/legacy/packadd_spec.lua2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim
index 10fea4dad3..e0f55b79c1 100644
--- a/src/nvim/testdir/test_autocmd.vim
+++ b/src/nvim/testdir/test_autocmd.vim
@@ -253,16 +253,15 @@ func Test_BufReadCmdHelp()
au BufReadCmd * e +h
help
- helpclose
au! BufReadCmd
endfunc
func Test_BufReadCmdHelpJump()
" This used to cause access to free memory
au BufReadCmd * e +h{
- help
+ " } to fix highlighting
+ call assert_fails('help', 'E434:')
- helpclose
au! BufReadCmd
endfunc
diff --git a/test/functional/legacy/packadd_spec.lua b/test/functional/legacy/packadd_spec.lua
index 67f6006d1d..7c3d48317b 100644
--- a/test/functional/legacy/packadd_spec.lua
+++ b/test/functional/legacy/packadd_spec.lua
@@ -15,7 +15,7 @@ describe('packadd', function()
source([=[
func SetUp()
- let s:topdir = expand(expand('%:p:h') . '/Xdir')
+ let s:topdir = expand(getcwd() . '/Xdir')
exe 'set packpath=' . s:topdir
let s:plugdir = expand(s:topdir . '/pack/mine/opt/mytest')
endfunc