diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-12-07 13:02:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 13:02:02 -0800 |
commit | 75aaec1b60e81742c01156e6884e6df977a1803e (patch) | |
tree | 0c277084471e60006799bec4053e66789b636e02 /test/functional/terminal/tui_spec.lua | |
parent | 9ae7d36ff5ebaf75597b442e10890bd77df01fbe (diff) | |
parent | 8957df4f22af508fa44b9f8ada7ee4636d972bd3 (diff) | |
download | rneovim-75aaec1b60e81742c01156e6884e6df977a1803e.tar.gz rneovim-75aaec1b60e81742c01156e6884e6df977a1803e.tar.bz2 rneovim-75aaec1b60e81742c01156e6884e6df977a1803e.zip |
Merge pull request #26456 from gpanders/ignore-vim-runtime
fix(terminal): ignore $VIM and $VIMRUNTIME in pty jobs
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 362f1fc1ee..5c1f3e7c65 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -24,6 +24,7 @@ local funcs = helpers.funcs local meths = helpers.meths local is_ci = helpers.is_ci local is_os = helpers.is_os +local is_arch = helpers.is_arch local new_pipename = helpers.new_pipename local spawn_argv = helpers.spawn_argv local set_session = helpers.set_session @@ -1829,8 +1830,18 @@ describe('TUI', function() [5] = {bold = true, reverse = true}, }) screen:attach() + funcs.termopen({ + nvim_prog, + '--clean', + '--cmd', 'colorscheme vim', + '--cmd', 'set notermguicolors', + '--cmd', 'let start = reltime() | while v:true | if reltimefloat(reltime(start)) > 2 | break | endif | endwhile', + }, { + env = { + VIMRUNTIME = os.getenv('VIMRUNTIME'), + }, + }) exec([[ - call termopen([v:progpath, '--clean', '--cmd', 'set notermguicolors', '--cmd', 'colorscheme vim', '--cmd', 'let start = reltime() | while v:true | if reltimefloat(reltime(start)) > 2 | break | endif | endwhile']) sleep 500m vs new ]]) @@ -1849,6 +1860,9 @@ describe('TUI', function() end) it('argv[0] can be overridden #23953', function() + if is_arch('aarch64') then + pending('execl does not work on aarch64') + end if not exec_lua('return pcall(require, "ffi")') then pending('missing LuaJIT FFI') end @@ -1887,8 +1901,12 @@ describe('TUI', function() finally(function() os.remove('testF') end) - local screen = thelpers.screen_setup(0, nvim_prog - ..' -u NONE -i NONE --cmd \'set noswapfile noshowcmd noruler\' --cmd \'normal iabc\' > /dev/null 2>&1 && cat testF && rm testF') + local screen = thelpers.screen_setup(0, + string.format( + 'VIMRUNTIME=%s %s -u NONE -i NONE --cmd \'set noswapfile noshowcmd noruler\' --cmd \'normal iabc\' > /dev/null 2>&1 && cat testF && rm testF', + os.getenv('VIMRUNTIME'), + nvim_prog + )) feed_data(':w testF\n:q\n') screen:expect([[ :w testF | |