comparison src/testdir/test_vim9_script.vim @ 22383:82d92f6c756c v8.2.1740

patch 8.2.1740: test fails without the terminal feature Commit: https://github.com/vim/vim/commit/58dbef330c42511f9d7d3b3990c73387041f3f3f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 25 22:13:05 2020 +0200 patch 8.2.1740: test fails without the terminal feature Problem: Test fails without the terminal feature. Solution: Skip test if the terminal feature is not available.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Sep 2020 22:15:04 +0200
parents 6fe9536694ff
children 36f13f35bd78
comparison
equal deleted inserted replaced
22382:dcfdfcb1f6c9 22383:82d92f6c756c
2830 END 2830 END
2831 CheckDefAndScriptSuccess(lines) 2831 CheckDefAndScriptSuccess(lines)
2832 enddef 2832 enddef
2833 2833
2834 def Test_define_func_at_command_line() 2834 def Test_define_func_at_command_line()
2835 CheckRunVimInTerminal
2836
2835 # run in a separate Vim instance to avoid the script context 2837 # run in a separate Vim instance to avoid the script context
2836 let lines =<< trim END 2838 let lines =<< trim END
2837 func CheckAndQuit() 2839 func CheckAndQuit()
2838 call assert_fails('call Afunc()', 'E117: Unknown function: Bfunc') 2840 call assert_fails('call Afunc()', 'E117: Unknown function: Bfunc')
2839 call writefile(['errors: ' .. string(v:errors)], 'Xdidcmd') 2841 call writefile(['errors: ' .. string(v:errors)], 'Xdidcmd')