aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-01-16 09:02:11 -0500
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-01-28 13:58:56 -0500
commit5c09f37d4ac09ce32852b729869c9745d99627ec (patch)
treef23d057a8ce7852aac3cdb432ba04dc24514f731
parent7ac21332cf8ba5a4d3222d4a7fa1c760ef531f17 (diff)
downloadrneovim-5c09f37d4ac09ce32852b729869c9745d99627ec.tar.gz
rneovim-5c09f37d4ac09ce32852b729869c9745d99627ec.tar.bz2
rneovim-5c09f37d4ac09ce32852b729869c9745d99627ec.zip
test: fix failed tests with $TMPDIR in QuickBuild
-rw-r--r--test/functional/legacy/fnamemodify_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/legacy/fnamemodify_spec.lua b/test/functional/legacy/fnamemodify_spec.lua
index c1a50387a3..0364316a6a 100644
--- a/test/functional/legacy/fnamemodify_spec.lua
+++ b/test/functional/legacy/fnamemodify_spec.lua
@@ -24,11 +24,11 @@ describe('filename modifiers', function()
execute 'cd '. tmpdir
let $HOME=fnamemodify('.', ':p:h:h:h')
call assert_equal('/', fnamemodify('.', ':p')[-1:])
- call assert_equal('p', fnamemodify('.', ':p:h')[-1:])
+ call assert_equal(tmpdir[strchars(tmpdir) - 1], fnamemodify('.', ':p:h')[-1:])
call assert_equal('t', fnamemodify('test.out', ':p')[-1:])
call assert_equal('test.out', fnamemodify('test.out', ':.'))
call assert_equal('../testdir/a', fnamemodify('../testdir/a', ':.'))
- call assert_equal('test.out', fnamemodify('test.out', ':~'))
+ call assert_equal(fnamemodify(tmpdir, ':~').'/test.out', fnamemodify('test.out', ':~'))
call assert_equal('../testdir/a', fnamemodify('../testdir/a', ':~'))
call assert_equal('a', fnamemodify('../testdir/a', ':t'))
call assert_equal('', fnamemodify('.', ':p:t'))