mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
tests: bail out on libdir just like $VIMRUNTIME, it cannot be calculated
This commit is contained in:
@@ -732,6 +732,11 @@ static void find_runtime_cb(char_u *fname, void *cookie)
|
|||||||
ADD(*rv, STRING_OBJ(cstr_to_string((char *)fname)));
|
ADD(*rv, STRING_OBJ(cstr_to_string((char *)fname)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String nvim__get_lib_dir(void)
|
||||||
|
{
|
||||||
|
return cstr_as_string(get_lib_dir());
|
||||||
|
}
|
||||||
|
|
||||||
/// Changes the global working directory.
|
/// Changes the global working directory.
|
||||||
///
|
///
|
||||||
/// @param dir Directory path
|
/// @param dir Directory path
|
||||||
|
@@ -295,7 +295,9 @@ describe('XDG-based defaults', function()
|
|||||||
|
|
||||||
local function vimruntime_and_libdir()
|
local function vimruntime_and_libdir()
|
||||||
local vimruntime = eval('$VIMRUNTIME')
|
local vimruntime = eval('$VIMRUNTIME')
|
||||||
local libdir = string.gsub(vimruntime, "share/nvim/runtime$", "lib/nvim")
|
-- libdir is hard to calculate reliably across various ci platforms
|
||||||
|
-- local libdir = string.gsub(vimruntime, "share/nvim/runtime$", "lib/nvim")
|
||||||
|
local libdir = meths._get_lib_dir()
|
||||||
return vimruntime, libdir
|
return vimruntime, libdir
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user