diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-01-17 01:54:35 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-01-17 01:57:52 +0100 |
commit | 6c2f02cbd02e8fd90e8ffae271dad3df48a54c4a (patch) | |
tree | 0859d7f0df0df55f87e1e4061e060ad3ef49c8d6 | |
parent | f72cb97fa0db63e14363af60f45d0f2a0a84cc27 (diff) | |
download | rneovim-6c2f02cbd02e8fd90e8ffae271dad3df48a54c4a.tar.gz rneovim-6c2f02cbd02e8fd90e8ffae271dad3df48a54c4a.tar.bz2 rneovim-6c2f02cbd02e8fd90e8ffae271dad3df48a54c4a.zip |
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\….
-rw-r--r-- | test/functional/options/defaults_spec.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua index 6a28885bf0..84ec43f4cb 100644 --- a/test/functional/options/defaults_spec.lua +++ b/test/functional/options/defaults_spec.lua @@ -359,7 +359,9 @@ describe('XDG defaults', function() end) it('are correctly set', function() - assert_log('Failed to start server: no such file or directory: /X/X/X', testlog, 10) + if not is_os('win') then + assert_log('Failed to start server: no such file or directory: /X/X/X', testlog, 10) + end local vimruntime, libdir = vimruntime_and_libdir() @@ -433,7 +435,9 @@ describe('XDG defaults', function() end) it('are not expanded', function() - assert_log('Failed to start server: no such file or directory: %$XDG_RUNTIME_DIR%/', testlog, 10) + if not is_os('win') then + assert_log('Failed to start server: no such file or directory: %$XDG_RUNTIME_DIR%/', testlog, 10) + end local vimruntime, libdir = vimruntime_and_libdir() eq((('$XDG_DATA_HOME/nvim' |