diff options
author | James McCoy <jamessan@jamessan.com> | 2024-11-26 22:11:20 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2024-12-03 06:31:09 -0500 |
commit | 9123bc0f3ff1607494dc859fa4df8eba3ec15540 (patch) | |
tree | 678014ce337c254480f69826c4e40e21fb57e9f4 | |
parent | 25bd2782a5f7cd6cec32d5d592a814951045a71b (diff) | |
download | rneovim-9123bc0f3ff1607494dc859fa4df8eba3ec15540.tar.gz rneovim-9123bc0f3ff1607494dc859fa4df8eba3ec15540.tar.bz2 rneovim-9123bc0f3ff1607494dc859fa4df8eba3ec15540.zip |
test(main_spec): make "nvim -v" test agnostic to build type
In release builds, the Compilation: line is omitted so the build is reproducible. Since the "fall-back for $VIM" line is always present, check for that instead.
-rw-r--r-- | test/functional/core/main_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/core/main_spec.lua b/test/functional/core/main_spec.lua index a445423efc..3b7cefb89f 100644 --- a/test/functional/core/main_spec.lua +++ b/test/functional/core/main_spec.lua @@ -188,9 +188,9 @@ describe('command-line option', function() it('nvim -v, :version', function() matches('Run ":verbose version"', fn.execute(':version')) - matches('Compilation: .*Run :checkhealth', fn.execute(':verbose version')) + matches('fall%-back for %$VIM: .*Run :checkhealth', fn.execute(':verbose version')) matches('Run "nvim %-V1 %-v"', fn.system({ nvim_prog_abs(), '-v' })) - matches('Compilation: .*Run :checkhealth', fn.system({ nvim_prog_abs(), '-V1', '-v' })) + matches('fall%-back for %$VIM: .*Run :checkhealth', fn.system({ nvim_prog_abs(), '-V1', '-v' })) end) if is_os('win') then |