" TODO: enable once writing to stdin works on MS-Windows
CheckNotMSWindows
CheckExecutable wc
+ let g:test_is_flaky = 1
call setline(1, ['one', 'two', 'three'])
%term wc
func Test_terminal_eof_arg()
call CheckPython(s:python)
+ let g:test_is_flaky = 1
call setline(1, ['print("hello")'])
exe '1term ++eof=exit(123) ' .. s:python
func Test_terminal_eof_arg_win32_ctrl_z()
CheckMSWindows
call CheckPython(s:python)
+ let g:test_is_flaky = 1
call setline(1, ['print("hello")'])
exe '1term ++eof=<C-Z> ' .. s:python
func Test_terminal_duplicate_eof_arg()
call CheckPython(s:python)
+ let g:test_is_flaky = 1
- " Check the last specified ++eof arg is used and should not memory leak.
+ " Check the last specified ++eof arg is used and does not leak memory.
new
call setline(1, ['print("hello")'])
exe '1term ++eof=<C-Z> ++eof=exit(123) ' .. s:python