diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-10 13:30:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-10 13:30:12 +0200 |
commit | 1ac41a5c1352306942344777d2ba86dccd84ffad (patch) | |
tree | 17371b356f3e214da8605295511d1cf66623d1ad /src/testdir/test_spell.vim | |
parent | 93268054428fe3a6bbe3f89d2def2fec4eabcf5f (diff) | |
download | vim-git-1ac41a5c1352306942344777d2ba86dccd84ffad.tar.gz |
patch 8.1.2129: using hard coded executable path in testv8.1.2129
Problem: Using hard coded executable path in test.
Solution: Use v:progpath. Use $VIMRUNTIME instead of "runtime". (James
McCoy, closes #5025)
Diffstat (limited to 'src/testdir/test_spell.vim')
-rw-r--r-- | src/testdir/test_spell.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index a44d95534..523126652 100644 --- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -130,18 +130,18 @@ func Test_spellinfo() new set enc=latin1 spell spelllang=en - call assert_match("^\nfile: .*/runtime/spell/en.latin1.spl\n$", execute('spellinfo')) + call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n$", execute('spellinfo')) set enc=cp1250 spell spelllang=en - call assert_match("^\nfile: .*/runtime/spell/en.ascii.spl\n$", execute('spellinfo')) + call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.ascii.spl\n$", execute('spellinfo')) set enc=utf-8 spell spelllang=en - call assert_match("^\nfile: .*/runtime/spell/en.utf-8.spl\n$", execute('spellinfo')) + call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.utf-8.spl\n$", execute('spellinfo')) set enc=latin1 spell spelllang=en_us,en_nz call assert_match("^\n" . - \ "file: .*/runtime/spell/en.latin1.spl\n" . - \ "file: .*/runtime/spell/en.latin1.spl\n$", execute('spellinfo')) + \ "file: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n" . + \ "file: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n$", execute('spellinfo')) set spell spelllang= call assert_fails('spellinfo', 'E756:') |