summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
-rw-r--r--test/functional/vimscript/executable_spec.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/functional/vimscript/executable_spec.lua b/test/functional/vimscript/executable_spec.lua
index a66f9cdb8a..05d249ca32 100644
--- a/test/functional/vimscript/executable_spec.lua
+++ b/test/functional/vimscript/executable_spec.lua
@@ -33,9 +33,15 @@ describe('executable()', function()
end)
it('stdpath respects shellslash', function()
- eq([[build\Xtest_xdg\share\nvim-data]], call('fnamemodify', call('stdpath', 'data'), ':.'))
+ t.matches(
+ [[build\Xtest_xdg[%w_]*\share\nvim%-data]],
+ call('fnamemodify', call('stdpath', 'data'), ':.')
+ )
command('set shellslash')
- eq('build/Xtest_xdg/share/nvim-data', call('fnamemodify', call('stdpath', 'data'), ':.'))
+ t.matches(
+ 'build/Xtest_xdg[%w_]*/share/nvim%-data',
+ call('fnamemodify', call('stdpath', 'data'), ':.')
+ )
end)
end