mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test(windows): unskip working tests (#25153)
Also simplify home detection with os_homedir()
This commit is contained in:
parent
a6e4793baf
commit
2d9e7a33f4
@ -1,4 +1,5 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local uv = require('luv')
|
||||
|
||||
local clear = helpers.clear
|
||||
local exec_lua = helpers.exec_lua
|
||||
@ -288,11 +289,12 @@ describe('vim.fs', function()
|
||||
eq('/', exec_lua [[ return vim.fs.normalize('/') ]])
|
||||
end)
|
||||
it('works with ~', function()
|
||||
eq( exec_lua([[
|
||||
local home = ...
|
||||
return home .. '/src/foo'
|
||||
]], is_os('win') and vim.fs.normalize(os.getenv('USERPROFILE')) or os.getenv('HOME')
|
||||
) , exec_lua [[ return vim.fs.normalize('~/src/foo') ]])
|
||||
eq(
|
||||
exec_lua([[
|
||||
local home = ...
|
||||
return home .. '/src/foo'
|
||||
]], vim.fs.normalize(uv.os_homedir())),
|
||||
exec_lua [[ return vim.fs.normalize('~/src/foo') ]])
|
||||
end)
|
||||
it('works with environment variables', function()
|
||||
local xdg_config_home = test_build_dir .. '/.config'
|
||||
|
@ -36,7 +36,6 @@ describe(':edit term://*', function()
|
||||
end)
|
||||
|
||||
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 scr = get_screen(columns, lines)
|
||||
local rep = 97
|
||||
|
Loading…
Reference in New Issue
Block a user