diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2024-12-04 07:20:04 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-04 07:20:04 -0800 |
| commit | 6551e3063043b86acc90476297645150bd198c3a (patch) | |
| tree | f778b332a0becb3494c8e93cea9bf14de9df101e /test | |
| parent | 734dba04d13bc7a6714134af322d49f333bfdc4c (diff) | |
| parent | 48bdbf12d0db441bb565c306385a88d05b3903b2 (diff) | |
| download | rneovim-6551e3063043b86acc90476297645150bd198c3a.tar.gz rneovim-6551e3063043b86acc90476297645150bd198c3a.tar.bz2 rneovim-6551e3063043b86acc90476297645150bd198c3a.zip | |
Merge #31358 fix test failures for release / tarball builds
Diffstat (limited to 'test')
| -rw-r--r-- | test/functional/api/version_spec.lua | 2 | ||||
| -rw-r--r-- | test/functional/core/main_spec.lua | 4 | ||||
| -rw-r--r-- | test/functional/lua/fs_spec.lua | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/test/functional/api/version_spec.lua b/test/functional/api/version_spec.lua index 72b5e307ee..68c4ef7503 100644 --- a/test/functional/api/version_spec.lua +++ b/test/functional/api/version_spec.lua @@ -43,7 +43,7 @@ describe("api_info()['version']", function() eq(0, fn.has('nvim-' .. major .. '.' .. minor .. '.' .. (patch + 1))) eq(0, fn.has('nvim-' .. major .. '.' .. (minor + 1) .. '.' .. patch)) eq(0, fn.has('nvim-' .. (major + 1) .. '.' .. minor .. '.' .. patch)) - assert(build == nil or type(build) == 'string') + assert(build == vim.NIL or type(build) == 'string') end) end) 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 diff --git a/test/functional/lua/fs_spec.lua b/test/functional/lua/fs_spec.lua index f0d49205e7..89f6ad6a0e 100644 --- a/test/functional/lua/fs_spec.lua +++ b/test/functional/lua/fs_spec.lua @@ -273,14 +273,14 @@ describe('vim.fs', function() end) it('works with a single marker', function() - eq(test_source_path, exec_lua([[return vim.fs.root(0, '.git')]])) + eq(test_source_path, exec_lua([[return vim.fs.root(0, 'CMakePresets.json')]])) end) it('works with multiple markers', function() local bufnr = api.nvim_get_current_buf() eq( vim.fs.joinpath(test_source_path, 'test/functional/fixtures'), - exec_lua([[return vim.fs.root(..., {'CMakeLists.txt', '.git'})]], bufnr) + exec_lua([[return vim.fs.root(..., {'CMakeLists.txt', 'CMakePresets.json'})]], bufnr) ) end) @@ -295,26 +295,26 @@ describe('vim.fs', function() end) it('works with a filename argument', function() - eq(test_source_path, exec_lua([[return vim.fs.root(..., '.git')]], nvim_prog)) + eq(test_source_path, exec_lua([[return vim.fs.root(..., 'CMakePresets.json')]], nvim_prog)) end) it('works with a relative path', function() eq( test_source_path, - exec_lua([[return vim.fs.root(..., '.git')]], vim.fs.basename(nvim_prog)) + exec_lua([[return vim.fs.root(..., 'CMakePresets.json')]], vim.fs.basename(nvim_prog)) ) end) it('uses cwd for unnamed buffers', function() command('new') - eq(test_source_path, exec_lua([[return vim.fs.root(0, '.git')]])) + eq(test_source_path, exec_lua([[return vim.fs.root(0, 'CMakePresets.json')]])) end) it("uses cwd for buffers with non-empty 'buftype'", function() command('new') command('set buftype=nofile') command('file lua://') - eq(test_source_path, exec_lua([[return vim.fs.root(0, '.git')]])) + eq(test_source_path, exec_lua([[return vim.fs.root(0, 'CMakePresets.json')]])) end) end) |