aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/startup_spec.lua
diff options
context:
space:
mode:
authorEnan Ajmain <3nan.ajmain@gmail.com>2022-07-18 06:00:08 +0600
committerGitHub <noreply@github.com>2022-07-17 17:00:08 -0700
commit1b462705d049fa0cf2bb99bae9112b84abea8d5a (patch)
tree67b375c191a2e81fd963f8f469edb1bd846fbb3f /test/functional/core/startup_spec.lua
parent776913e32ea4526847b1fffe2959d2b1f7d67451 (diff)
downloadrneovim-1b462705d049fa0cf2bb99bae9112b84abea8d5a.tar.gz
rneovim-1b462705d049fa0cf2bb99bae9112b84abea8d5a.tar.bz2
rneovim-1b462705d049fa0cf2bb99bae9112b84abea8d5a.zip
fix(windows):exepath, stdpath return wrong slashes #19111
exepath and stdpath should respect shellslash and return path with proper file separator. Closes #13787
Diffstat (limited to 'test/functional/core/startup_spec.lua')
-rw-r--r--test/functional/core/startup_spec.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 51ab0e6382..4f9df4010e 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -24,6 +24,7 @@ local iswin = helpers.iswin
local startswith = helpers.startswith
local write_file = helpers.write_file
local meths = helpers.meths
+local alter_slashes = helpers.alter_slashes
local testfile = 'Xtest_startuptime'
after_each(function()
@@ -33,9 +34,9 @@ end)
describe('startup', function()
it('--clean', function()
clear()
- ok(string.find(meths.get_option('runtimepath'), funcs.stdpath('config'), 1, true) ~= nil)
+ ok(string.find(alter_slashes(meths.get_option('runtimepath')), funcs.stdpath('config'), 1, true) ~= nil)
clear('--clean')
- ok(string.find(meths.get_option('runtimepath'), funcs.stdpath('config'), 1, true) == nil)
+ ok(string.find(alter_slashes(meths.get_option('runtimepath')), funcs.stdpath('config'), 1, true) == nil)
end)
it('--startuptime', function()