mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix: failing XDG test on Windows CI
Problem: Failing Windows CI: FAILED test/functional\options\defaults_spec.lua @ 361: XDG defaults with too long XDG variables are correctly set test\helpers.lua:134: Pattern "Failed to start server: no such file or directory: /X/X/X" not found in log (last 10 lines): Xtest-defaults-log: FAILED test/functional\options\defaults_spec.lua @ 435: XDG defaults with XDG variables that can be expanded are not expanded test\helpers.lua:134: Pattern "Failed to start server: no such file or directory: %$XDG_RUNTIME_DIR%/" not found in log (last 10 lines): Xtest-defaults-log: Solution: The assert_log() statements are not relevant on Windows, because there XDG_RUNTIME_DIR is not used for creating servers, it uses \\.pipe\….
This commit is contained in:
@@ -359,7 +359,9 @@ describe('XDG defaults', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('are correctly set', function()
|
it('are correctly set', function()
|
||||||
|
if not is_os('win') then
|
||||||
assert_log('Failed to start server: no such file or directory: /X/X/X', testlog, 10)
|
assert_log('Failed to start server: no such file or directory: /X/X/X', testlog, 10)
|
||||||
|
end
|
||||||
|
|
||||||
local vimruntime, libdir = vimruntime_and_libdir()
|
local vimruntime, libdir = vimruntime_and_libdir()
|
||||||
|
|
||||||
@@ -433,7 +435,9 @@ describe('XDG defaults', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('are not expanded', function()
|
it('are not expanded', function()
|
||||||
|
if not is_os('win') then
|
||||||
assert_log('Failed to start server: no such file or directory: %$XDG_RUNTIME_DIR%/', testlog, 10)
|
assert_log('Failed to start server: no such file or directory: %$XDG_RUNTIME_DIR%/', testlog, 10)
|
||||||
|
end
|
||||||
|
|
||||||
local vimruntime, libdir = vimruntime_and_libdir()
|
local vimruntime, libdir = vimruntime_and_libdir()
|
||||||
eq((('$XDG_DATA_HOME/nvim'
|
eq((('$XDG_DATA_HOME/nvim'
|
||||||
|
Reference in New Issue
Block a user