mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
test(windows): unskip working tests (#25153)
Also simplify home detection with os_homedir()
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
local helpers = require('test.functional.helpers')(after_each)
|
local helpers = require('test.functional.helpers')(after_each)
|
||||||
|
local uv = require('luv')
|
||||||
|
|
||||||
local clear = helpers.clear
|
local clear = helpers.clear
|
||||||
local exec_lua = helpers.exec_lua
|
local exec_lua = helpers.exec_lua
|
||||||
@@ -288,11 +289,12 @@ describe('vim.fs', function()
|
|||||||
eq('/', exec_lua [[ return vim.fs.normalize('/') ]])
|
eq('/', exec_lua [[ return vim.fs.normalize('/') ]])
|
||||||
end)
|
end)
|
||||||
it('works with ~', function()
|
it('works with ~', function()
|
||||||
eq( exec_lua([[
|
eq(
|
||||||
local home = ...
|
exec_lua([[
|
||||||
return home .. '/src/foo'
|
local home = ...
|
||||||
]], is_os('win') and vim.fs.normalize(os.getenv('USERPROFILE')) or os.getenv('HOME')
|
return home .. '/src/foo'
|
||||||
) , exec_lua [[ return vim.fs.normalize('~/src/foo') ]])
|
]], vim.fs.normalize(uv.os_homedir())),
|
||||||
|
exec_lua [[ return vim.fs.normalize('~/src/foo') ]])
|
||||||
end)
|
end)
|
||||||
it('works with environment variables', function()
|
it('works with environment variables', function()
|
||||||
local xdg_config_home = test_build_dir .. '/.config'
|
local xdg_config_home = test_build_dir .. '/.config'
|
||||||
|
@@ -36,7 +36,6 @@ describe(':edit term://*', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it("runs TermOpen early enough to set buffer-local 'scrollback'", function()
|
it("runs TermOpen early enough to set buffer-local 'scrollback'", function()
|
||||||
if helpers.skip(helpers.is_os('win')) then return end
|
|
||||||
local columns, lines = 20, 4
|
local columns, lines = 20, 4
|
||||||
local scr = get_screen(columns, lines)
|
local scr = get_screen(columns, lines)
|
||||||
local rep = 97
|
local rep = 97
|
||||||
|
Reference in New Issue
Block a user