patch 9.1.1524: tests: too many imports in the test suite Commit: https://github.com/vim/vim/commit/b0905e269d523ca33737d08e2613980be7b8d133 Author: Christian Brabandt <c...@256bit.org> Date: Mon Jul 7 20:39:29 2025 +0200
patch 9.1.1524: tests: too many imports in the test suite Problem: tests: too many imports in the test suite Solution: Clean up the imported scripts Most tests make use of check.vim, so let's just source it once in runtest.vim instead of having each test manually source it. runtest.vim already sources shared.vim, which again sources view_util.vim, so we don't need to source those two common dependencies in all the other tests And then check.vim sources term_util.vim already, so we can in addition drop sourcing it explicitly in each single test script. Note: test_expand_func.vim had to be updated to account for the changed number of sourced files. And finally check.vim uses line-continuation so let's also explicitly enable line continuation via the 'cpo' option value. related: #17677 Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/testdir/check.vim b/src/testdir/check.vim index 76f6692ae..fd160b0aa 100644 --- a/src/testdir/check.vim +++ b/src/testdir/check.vim @@ -1,6 +1,10 @@ source shared.vim source term_util.vim +" uses line-continuation +let s:cpo_save = &cpo +set cpo&vim + command -nargs=1 MissingFeature throw 'Skipped: ' .. <args> .. ' feature missing' " Command to check for the presence of a feature. @@ -324,4 +328,7 @@ func CheckGithubActions() throw "Skipped: FIXME: this test doesn't work on Github Actions CI" endif endfunc + +let &cpo = s:cpo_save +unlet s:cpo_save " vim: shiftwidth=2 sts=2 expandtab diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim index 5028a85f6..a56679c82 100644 --- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -106,6 +106,9 @@ source setup.vim " Needed for RunningWithValgrind(). source shared.vim +" Needed for the various Check commands +source check.vim + " For consistency run all tests with 'nocompatible' set. " This also enables use of line continuation. set nocp viminfo+=nviminfo diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim index d7207d41a..be6af861a 100644 --- a/src/testdir/screendump.vim +++ b/src/testdir/screendump.vim @@ -5,9 +5,6 @@ if exists('*VerifyScreenDump') finish endif -source shared.vim -source term_util.vim - " Skip the rest if there is no terminal feature at all. if !has('terminal') finish diff --git a/src/testdir/test_arabic.vim b/src/testdir/test_arabic.vim index d2f28d818..8758e9888 100644 --- a/src/testdir/test_arabic.vim +++ b/src/testdir/test_arabic.vim @@ -2,11 +2,8 @@ " NOTE: This just checks if the code works. If you know Arabic please add " functional tests that check the shaping works with real text. -source check.vim CheckFeature arabic -source view_util.vim - " Return list of Unicode characters at line lnum. " Combining characters are treated as a single item. func s:get_chars(lnum) diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim index c320d096f..2a76ca651 100644 --- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -1,9 +1,5 @@ " Test argument list commands -source check.vim -source shared.vim -source term_util.vim - func Reset_arglist() args a | %argd endfunc diff --git a/src/testdir/test_assert.vim b/src/testdir/test_assert.vim index 15b18a442..ad4e751c4 100644 --- a/src/testdir/test_assert.vim +++ b/src/testdir/test_assert.vim @@ -1,8 +1,5 @@ " Test that the methods used for testing work. -source check.vim -source term_util.vim - func Test_assert_false() call assert_equal(0, assert_false(0)) call assert_equal(0, assert_false(v:false)) diff --git a/src/testdir/test_autochdir.vim b/src/testdir/test_autochdir.vim index eb402539f..a9cb66b2c 100644 --- a/src/testdir/test_autochdir.vim +++ b/src/testdir/test_autochdir.vim @@ -1,6 +1,5 @@ " Test 'autochdir' behavior -source check.vim CheckOption autochdir func Test_set_filename() diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index 4d001c216..c78088d0c 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -1,8 +1,5 @@ " Tests for autocommands -source shared.vim -source check.vim -source term_util.vim source screendump.vim import './vim9.vim' as v9 diff --git a/src/testdir/test_backup.vim b/src/testdir/test_backup.vim index 68f298559..3c24a69bf 100644 --- a/src/testdir/test_backup.vim +++ b/src/testdir/test_backup.vim @@ -1,7 +1,5 @@ " Tests for the backup function -source check.vim - func Test_backup() set backup backupdir=. backupskip= new diff --git a/src/testdir/test_balloon.vim b/src/testdir/test_balloon.vim index 1a9e2258d..6f89f2fa9 100644 --- a/src/testdir/test_balloon.vim +++ b/src/testdir/test_balloon.vim @@ -1,7 +1,6 @@ " Tests for 'balloonevalterm'. " A few tests only work in the terminal. -source check.vim CheckNotGui CheckFeature balloon_eval_term diff --git a/src/testdir/test_balloon_gui.vim b/src/testdir/test_balloon_gui.vim index d01114c1c..904387752 100644 --- a/src/testdir/test_balloon_gui.vim +++ b/src/testdir/test_balloon_gui.vim @@ -1,6 +1,5 @@ " Tests for 'ballooneval' in the GUI. -source check.vim CheckGui CheckFeature balloon_eval diff --git a/src/testdir/test_bench_regexp.vim b/src/testdir/test_bench_regexp.vim index eb9f5f8e5..636d832a2 100644 --- a/src/testdir/test_bench_regexp.vim +++ b/src/testdir/test_bench_regexp.vim @@ -1,6 +1,5 @@ " Test for benchmarking the RE engine -source check.vim CheckFeature reltime func Measure(file, pattern, arg) diff --git a/src/testdir/test_breakindent.vim b/src/testdir/test_breakindent.vim index 16a11b35a..e081307ab 100644 --- a/src/testdir/test_breakindent.vim +++ b/src/testdir/test_breakindent.vim @@ -4,10 +4,8 @@ " while the test is run, the breakindent caching gets in its way. " It helps to change the tabstop setting and force a redraw (e.g. see " Test_breakindent08()) -source check.vim CheckOption breakindent -source view_util.vim source screendump.vim func SetUp() diff --git a/src/testdir/test_buffer.vim b/src/testdir/test_buffer.vim index 36a6ef503..d6d668799 100644 --- a/src/testdir/test_buffer.vim +++ b/src/testdir/test_buffer.vim @@ -1,7 +1,5 @@ " Tests for Vim buffer -source check.vim - " Test for the :bunload command with an offset func Test_bunload_with_offset() %bwipe! diff --git a/src/testdir/test_bufline.vim b/src/testdir/test_bufline.vim index 4ada241d1..1aa0c017c 100644 --- a/src/testdir/test_bufline.vim +++ b/src/testdir/test_bufline.vim @@ -1,8 +1,6 @@ " Tests for setbufline(), getbufline(), appendbufline(), deletebufline() -source shared.vim source screendump.vim -source check.vim func Test_setbufline_getbufline() " similar to Test_set_get_bufline() diff --git a/src/testdir/test_bufwintabinfo.vim b/src/testdir/test_bufwintabinfo.vim index 1517a9b73..f7318ff55 100644 --- a/src/testdir/test_bufwintabinfo.vim +++ b/src/testdir/test_bufwintabinfo.vim @@ -1,7 +1,5 @@ " Tests for the getbufinfo(), getwininfo() and gettabinfo() functions -source check.vim - func Test_getbufwintabinfo() CheckFeature quickfix diff --git a/src/testdir/test_cd.vim b/src/testdir/test_cd.vim index 85494d386..878a2aeb5 100644 --- a/src/testdir/test_cd.vim +++ b/src/testdir/test_cd.vim @@ -1,8 +1,5 @@ " Test for :cd and chdir() -source shared.vim -source check.vim - func Test_cd_large_path() " This used to crash with a heap write overflow. call assert_fails('cd ' . repeat('x', 5000), 'E344:') diff --git a/src/testdir/test_cdo.vim b/src/testdir/test_cdo.vim index dbed7df4a..9cf435a97 100644 --- a/src/testdir/test_cdo.vim +++ b/src/testdir/test_cdo.vim @@ -1,6 +1,5 @@ " Tests for the :cdo, :cfdo, :ldo and :lfdo commands -source check.vim CheckFeature quickfix " Create the files used by the tests diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index 2d40eff12..6a0ee5410 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -1,12 +1,9 @@ " Test for channel and job functions. " When +channel is supported then +job is too, so we don't check for that. -source check.vim CheckFeature channel -source shared.vim source screendump.vim -source view_util.vim let s:python = PythonProg() if s:python == '' diff --git a/src/testdir/test_clientserver.vim b/src/testdir/test_clientserver.vim index 02b0c3921..3d69eed75 100644 --- a/src/testdir/test_clientserver.vim +++ b/src/testdir/test_clientserver.vim @@ -1,6 +1,5 @@ " Tests for the +clientserver feature. -source check.vim CheckFeature job if !has('clientserver') diff --git a/src/testdir/test_clipmethod.vim b/src/testdir/test_clipmethod.vim index 591b3a2fc..31a381c14 100644 --- a/src/testdir/test_clipmethod.vim +++ b/src/testdir/test_clipmethod.vim @@ -1,7 +1,5 @@ " Tests for clipmethod -source check.vim -source shared.vim source window_manager.vim CheckFeature clipboard_working diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 6aedf3ec2..cfc64f79d 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -1,9 +1,6 @@ " Tests for editing the command line. -source check.vim source screendump.vim -source view_util.vim -source shared.vim import './vim9.vim' as v9 func SetUp() diff --git a/src/testdir/test_cmdwin.vim b/src/testdir/test_cmdwin.vim index 33a266262..9c37f2052 100644 --- a/src/testdir/test_cmdwin.vim +++ b/src/testdir/test_cmdwin.vim @@ -1,6 +1,5 @@ " Tests for editing the command line. -source check.vim source screendump.vim func Test_getcmdwintype() diff --git a/src/testdir/test_compiler.vim b/src/testdir/test_compiler.vim index d86c55f1c..d28349a70 100644 --- a/src/testdir/test_compiler.vim +++ b/src/testdir/test_compiler.vim @@ -1,8 +1,5 @@ " Test the :compiler command -source check.vim -source shared.vim - func Test_compiler() CheckExecutable perl CheckFeature quickfix diff --git a/src/testdir/test_conceal.vim b/src/testdir/test_conceal.vim index bac3ed102..ac27dba57 100644 --- a/src/testdir/test_conceal.vim +++ b/src/testdir/test_conceal.vim @@ -1,10 +1,8 @@ " Tests for 'conceal'. -source check.vim CheckFeature conceal source screendump.vim -source view_util.vim func Test_conceal_two_windows() CheckScreendump diff --git a/src/testdir/test_cpoptions.vim b/src/testdir/test_cpoptions.vim index 7bfbcd12a..2afe3e885 100644 --- a/src/testdir/test_cpoptions.vim +++ b/src/testdir/test_cpoptions.vim @@ -1,9 +1,5 @@ " Test for the various 'cpoptions' (cpo) flags -source check.vim -source shared.vim -source view_util.vim - " Test for the 'a' flag in 'cpo'. Reading a file should set the alternate " file name. func Test_cpo_a() diff --git a/src/testdir/test_crash.vim b/src/testdir/test_crash.vim index 80c1ccf0c..f497d9ed4 100644 --- a/src/testdir/test_crash.vim +++ b/src/testdir/test_crash.vim @@ -1,5 +1,4 @@ " Some tests, that used to crash Vim -source check.vim source screendump.vim CheckScreendump diff --git a/src/testdir/test_crypt.vim b/src/testdir/test_crypt.vim index f056e38f8..4a96c3070 100644 --- a/src/testdir/test_crypt.vim +++ b/src/testdir/test_crypt.vim @@ -1,7 +1,5 @@ " Tests for encryption. -source shared.vim -source check.vim CheckFeature cryptv " Use the xxd command from: diff --git a/src/testdir/test_cscope.vim b/src/testdir/test_cscope.vim index b2ecdcc91..ddd4de0b8 100644 --- a/src/testdir/test_cscope.vim +++ b/src/testdir/test_cscope.vim @@ -1,6 +1,5 @@ " Test for cscope commands. -source check.vim CheckFeature cscope CheckFeature quickfix CheckExecutable cscope diff --git a/src/testdir/test_cursor_func.vim b/src/testdir/test_cursor_func.vim index 1fd6b5fc4..73169649d 100644 --- a/src/testdir/test_cursor_func.vim +++ b/src/testdir/test_cursor_func.vim @@ -1,7 +1,5 @@ " Tests for cursor() and other functions that get/set the cursor position -source check.vim - func Test_wrong_arguments() call assert_fails('call cursor(1. 3)', 'E474:') call assert_fails('call cursor(test_null_list())', 'E474:') diff --git a/src/testdir/test_cursorline.vim b/src/testdir/test_cursorline.vim index d258111ae..a497d0e39 100644 --- a/src/testdir/test_cursorline.vim +++ b/src/testdir/test_cursorline.vim @@ -1,6 +1,5 @@ " Test for cursorline and cursorlineopt -source check.vim source screendump.vim func s:screen_attr(lnum) abort diff --git a/src/testdir/test_curswant.vim b/src/testdir/test_curswant.vim index c67cca5f7..d4f86a145 100644 --- a/src/testdir/test_curswant.vim +++ b/src/testdir/test_curswant.vim @@ -1,8 +1,5 @@ " Tests for not changing curswant -source check.vim -source term_util.vim - func Test_curswant() new call append(0, ['1234567890', '12345']) diff --git a/src/testdir/test_debugger.vim b/src/testdir/test_debugger.vim index 2fd68551f..be881b5b2 100644 --- a/src/testdir/test_debugger.vim +++ b/src/testdir/test_debugger.vim @@ -1,8 +1,6 @@ " Tests for the Vim script debug commands -source shared.vim source screendump.vim -source check.vim CheckRunVimInTerminal diff --git a/src/testdir/test_delete.vim b/src/testdir/test_delete.vim index 6323f9abb..59d569f31 100644 --- a/src/testdir/test_delete.vim +++ b/src/testdir/test_delete.vim @@ -1,7 +1,5 @@ " Test for delete(). -source check.vim -source term_util.vim source screendump.vim func Test_file_delete() diff --git a/src/testdir/test_diffmode.vim b/src/testdir/test_diffmode.vim index a348d3a40..5c3873835 100644 --- a/src/testdir/test_diffmode.vim +++ b/src/testdir/test_diffmode.vim @@ -1,9 +1,6 @@ " Tests for diff mode -source shared.vim source screendump.vim -source check.vim -source view_util.vim func Test_diff_fold_sync() enew! diff --git a/src/testdir/test_digraph.vim b/src/testdir/test_digraph.vim index 29fa30018..c53b1bcc0 100644 --- a/src/testdir/test_digraph.vim +++ b/src/testdir/test_digraph.vim @@ -1,8 +1,6 @@ " Tests for digraphs -source check.vim CheckFeature digraphs -source term_util.vim func Put_Dig(chars) exe "norm! o\<c-k>".a:chars diff --git a/src/testdir/test_display.vim b/src/testdir/test_display.vim index 8f3806bd6..be6ca7b0f 100644 --- a/src/testdir/test_display.vim +++ b/src/testdir/test_display.vim @@ -4,8 +4,6 @@ if !has('gui_running') && has('unix') set term=ansi endif -source view_util.vim -source check.vim source screendump.vim func Test_display_foldcolumn() diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim index bde2cb0c8..f8ef1d8c5 100644 --- a/src/testdir/test_edit.vim +++ b/src/testdir/test_edit.vim @@ -4,9 +4,7 @@ if exists("+t_kD") let &t_kD=" [3;*~" endif -source check.vim source screendump.vim -source view_util.vim " Needs to come first until the bug in getchar() is " fixed: https://groups.google.com/d/msg/vim_dev/fXL9yme4H4c/bOR-U6_bAQAJ diff --git a/src/testdir/test_environ.vim b/src/testdir/test_environ.vim index b5dbdce10..05d4f1f07 100644 --- a/src/testdir/test_environ.vim +++ b/src/testdir/test_environ.vim @@ -2,8 +2,6 @@ scriptencoding utf-8 -source check.vim - func Test_environ() unlet! $TESTENV call assert_equal(0, has_key(environ(), 'TESTENV')) diff --git a/src/testdir/test_escaped_glob.vim b/src/testdir/test_escaped_glob.vim index f81961bed..5da2a790d 100644 --- a/src/testdir/test_escaped_glob.vim +++ b/src/testdir/test_escaped_glob.vim @@ -1,8 +1,6 @@ " Test whether glob()/globpath() return correct results with certain escaped " characters. -source check.vim - func SetUp() " consistent sorting of file names set nofileignorecase diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim index d2f949ed5..ada466723 100644 --- a/src/testdir/test_eval_stuff.vim +++ b/src/testdir/test_eval_stuff.vim @@ -1,6 +1,5 @@ " Tests for various eval things. -source view_util.vim source shared.vim import './vim9.vim' as v9 diff --git a/src/testdir/test_ex_mode.vim b/src/testdir/test_ex_mode.vim index 19d0bece6..46dafebfa 100644 --- a/src/testdir/test_ex_mode.vim +++ b/src/testdir/test_ex_mode.vim @@ -1,8 +1,5 @@ " Test editing line in Ex mode (see :help Q and :help gQ). -source check.vim -source shared.vim - " Helper function to test editing line in Q Ex mode func Ex_Q(cmd) " Is there a simpler way to test editing Ex line? diff --git a/src/testdir/test_excmd.vim b/src/testdir/test_excmd.vim index 3b7e489f3..66ef50177 100644 --- a/src/testdir/test_excmd.vim +++ b/src/testdir/test_excmd.vim @@ -1,8 +1,5 @@ " Tests for various Ex commands. -source check.vim -source shared.vim -source term_util.vim source screendump.vim func Test_ex_delete() diff --git a/src/testdir/test_execute_func.vim b/src/testdir/test_execute_func.vim index faaace09a..e1c85b097 100644 --- a/src/testdir/test_execute_func.vim +++ b/src/testdir/test_execute_func.vim @@ -1,9 +1,6 @@ " test execute() -source view_util.vim -source check.vim import './vim9.vim' as v9 -source term_util.vim func NestedEval() let nested = execute('echo "nested lines"') diff --git a/src/testdir/test_exit.vim b/src/testdir/test_exit.vim index b0446ba22..3e0919a02 100644 --- a/src/testdir/test_exit.vim +++ b/src/testdir/test_exit.vim @@ -1,8 +1,5 @@ " Tests for exiting Vim. -source shared.vim -source check.vim - func Test_exiting() let after =<< trim [CODE] au QuitPre * call writefile(["QuitPre"], "Xtestout") diff --git a/src/testdir/test_expand.vim b/src/testdir/test_expand.vim index bebe13868..84f1c7d11 100644 --- a/src/testdir/test_expand.vim +++ b/src/testdir/test_expand.vim @@ -1,8 +1,5 @@ " Test for expanding file names -source shared.vim -source check.vim - func Test_with_directories() call mkdir('Xdir1') call mkdir('Xdir2') diff --git a/src/testdir/test_expand_func.vim b/src/testdir/test_expand_func.vim index 15700480c..a2611e732 100644 --- a/src/testdir/test_expand_func.vim +++ b/src/testdir/test_expand_func.vim @@ -1,7 +1,5 @@ " Tests for expand() -source shared.vim - let s:sfile = expand('<sfile>') let s:slnum = str2nr(expand('<slnum>')) let s:sflnum = str2nr(expand('<sflnum>')) @@ -20,20 +18,20 @@ endfunc " This test depends on the location in the test file, put it first. func Test_expand_sflnum() - call assert_equal(7, s:sflnum) - call assert_equal(24, str2nr(expand('<sflnum>'))) + call assert_equal(5, s:sflnum) + call assert_equal(22, str2nr(expand('<sflnum>'))) " Line-continuation call assert_equal( - \ 27, + \ 25, \ str2nr(expand('<sflnum>'))) " Call in script-local function - call assert_equal(18, s:expand_sflnum()) + call assert_equal(16, s:expand_sflnum()) " Call in command command Flnum echo expand('<sflnum>') - call assert_equal(36, str2nr(trim(execute('Flnum')))) + call assert_equal(34, str2nr(trim(execute('Flnum')))) delcommand Flnum endfunc @@ -86,7 +84,7 @@ func Test_expand_sfile_and_stack() endfunc func Test_expand_slnum() - call assert_equal(6, s:slnum) + call assert_equal(4, s:slnum) call assert_equal(2, str2nr(expand('<slnum>'))) " Line-continuation diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim index 8bba1f00e..e08019a2e 100644 --- a/src/testdir/test_expr.vim +++ b/src/testdir/test_expr.vim @@ -1,6 +1,5 @@ " Tests for expressions. -source check.vim import './vim9.vim' as v9 func Test_equal() diff --git a/src/testdir/test_file_size.vim b/src/testdir/test_file_size.vim index d349bc2e9..ae15d1a94 100644 --- a/src/testdir/test_file_size.vim +++ b/src/testdir/test_file_size.vim @@ -8,8 +8,6 @@ " cksum is part of POSIX and so should be available on most Unixes. " If it isn't available then the test will be skipped. -source check.vim - func Test_File_Size() CheckExecutable cksum diff --git a/src/testdir/test_filechanged.vim b/src/testdir/test_filechanged.vim index 12ac4ccde..da517515a 100644 --- a/src/testdir/test_filechanged.vim +++ b/src/testdir/test_filechanged.vim @@ -1,7 +1,5 @@ " Tests for when a file was changed outside of Vim. -source check.vim - func Test_FileChangedShell_reload() CheckUnix diff --git a/src/testdir/test_filecopy.vim b/src/testdir/test_filecopy.vim index b526dce7b..956f3d718 100644 --- a/src/testdir/test_filecopy.vim +++ b/src/testdir/test_filecopy.vim @@ -1,8 +1,5 @@ " Test filecopy() -source check.vim -source shared.vim - func Test_copy_file_to_file() call writefile(['foo'], 'Xcopy1') diff --git a/src/testdir/test_fileformat.vim b/src/testdir/test_fileformat.vim index 7d919c24a..a5687f9fb 100644 --- a/src/testdir/test_fileformat.vim +++ b/src/testdir/test_fileformat.vim @@ -1,7 +1,5 @@ " Test for 'fileformat' -source shared.vim - " Test behavior of fileformat after bwipeout of last buffer func Test_fileformat_after_bw() bwipeout diff --git a/src/testdir/test_filter_cmd.vim b/src/testdir/test_filter_cmd.vim index 7c84a1384..4edcb6636 100644 --- a/src/testdir/test_filter_cmd.vim +++ b/src/testdir/test_filter_cmd.vim @@ -1,7 +1,5 @@ " Test the :filter command modifier -source check.vim - func Test_filter() edit Xdoesnotmatch edit Xwillmatch diff --git a/src/testdir/test_findfile.vim b/src/testdir/test_findfile.vim index a7c3dc26d..ec380cbb4 100644 --- a/src/testdir/test_findfile.vim +++ b/src/testdir/test_findfile.vim @@ -1,6 +1,5 @@ " Test findfile() and finddir() -source check.vim import './vim9.vim' as v9 let s:files = [ 'Xfinddir1/foo', diff --git a/src/testdir/test_float_func.vim b/src/testdir/test_float_func.vim index acc2e11e0..23e3c314c 100644 --- a/src/testdir/test_float_func.vim +++ b/src/testdir/test_float_func.vim @@ -1,6 +1,5 @@ " test float functions -source check.vim import './vim9.vim' as v9 func Test_abs() diff --git a/src/testdir/test_fold.vim b/src/testdir/test_fold.vim index 17487a561..0fc99bc55 100644 --- a/src/testdir/test_fold.vim +++ b/src/testdir/test_fold.vim @@ -1,7 +1,5 @@ " Test for folding -source check.vim -source view_util.vim source screendump.vim func PrepIndent(arg) diff --git a/src/testdir/test_format.vim b/src/testdir/test_format.vim index c26128893..b6be20401 100644 --- a/src/testdir/test_format.vim +++ b/src/testdir/test_format.vim @@ -1,6 +1,5 @@ " Tests for expressions. -source check.vim import './vim9.vim' as v9 func Test_printf_pos_misc() diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index 847987b55..ae16d1e85 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -1,8 +1,5 @@ " Tests for various functions. -source shared.vim -source check.vim -source term_util.vim source screendump.vim import './vim9.vim' as v9 diff --git a/src/testdir/test_gettext.vim b/src/testdir/test_gettext.vim index ddfc402a3..626e2563c 100644 --- a/src/testdir/test_gettext.vim +++ b/src/testdir/test_gettext.vim @@ -1,8 +1,7 @@ -source check.vim +" Test for gettext() CheckFeature gettext -" Test for gettext() func Test_gettext() call assert_fails('call bindtextdomain("test")', 'E119:') call assert_fails('call bindtextdomain("vim", "test")', 'E475:') diff --git a/src/testdir/test_gettext_cp1251.vim b/src/testdir/test_gettext_cp1251.vim index 9c30e091e..0108dbbfc 100644 --- a/src/testdir/test_gettext_cp1251.vim +++ b/src/testdir/test_gettext_cp1251.vim @@ -1,4 +1,3 @@ -source check.vim " This fail on CI MacOS 14 because bindtextdomain() is not available there " (missing library?) CheckNotMac diff --git a/src/testdir/test_gettext_make.vim b/src/testdir/test_gettext_make.vim index 860aa2c65..2347c8ea1 100644 --- a/src/testdir/test_gettext_make.vim +++ b/src/testdir/test_gettext_make.vim @@ -1,4 +1,3 @@ -source check.vim CheckNotMac CheckFeature gettext diff --git a/src/testdir/test_gettext_utf8.vim b/src/testdir/test_gettext_utf8.vim index 87fe1b144..b1ab6f8b0 100644 --- a/src/testdir/test_gettext_utf8.vim +++ b/src/testdir/test_gettext_utf8.vim @@ -1,4 +1,3 @@ -source check.vim " This fail on CI MacOS 14 because bindtextdomain() is not available there " (missing library?) CheckNotMac diff --git a/src/testdir/test_global.vim b/src/testdir/test_global.vim index 0f72c3cf8..4dddd0fb9 100644 --- a/src/testdir/test_global.vim +++ b/src/testdir/test_global.vim @@ -1,8 +1,5 @@ " Test for :global and :vglobal -source check.vim -source term_util.vim - func Test_yank_put_clipboard() new call setline(1, ['a', 'b', 'c']) diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index 83de2ad70..45966eba5 100644 --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -1,7 +1,5 @@ " Tests specifically for the GUI -source shared.vim -source check.vim CheckCanRunGui source setup_gui.vim diff --git a/src/testdir/test_gui_init.vim b/src/testdir/test_gui_init.vim index 6f2201350..f3effff48 100644 --- a/src/testdir/test_gui_init.vim +++ b/src/testdir/test_gui_init.vim @@ -1,8 +1,6 @@ " Tests specifically for the GUI features/options that need to be set up at " startup to take effect at runtime. -source shared.vim -source check.vim CheckCanRunGui source setup_gui.vim diff --git a/src/testdir/test_hardcopy.vim b/src/testdir/test_hardcopy.vim index 926ff8f97..33ef4bff1 100644 --- a/src/testdir/test_hardcopy.vim +++ b/src/testdir/test_hardcopy.vim @@ -1,7 +1,5 @@ " Test :hardcopy -source check.vim - func Test_printoptions() edit test_hardcopy.vim syn on diff --git a/src/testdir/test_help.vim b/src/testdir/test_help.vim index 6422317de..e87d31258 100644 --- a/src/testdir/test_help.vim +++ b/src/testdir/test_help.vim @@ -1,6 +1,5 @@ " Tests for :help -source check.vim import './vim9.vim' as v9 func Test_help_restore_snapshot() diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim index 91423eb96..487eb8dc1 100644 --- a/src/testdir/test_highlight.vim +++ b/src/testdir/test_highlight.vim @@ -1,8 +1,6 @@ " Tests for ":highlight" and highlighting. -source view_util.vim source screendump.vim -source check.vim source script_util.vim import './vim9.vim' as v9 diff --git a/src/testdir/test_history.vim b/src/testdir/test_history.vim index b288abc3f..2470a5bce 100644 --- a/src/testdir/test_history.vim +++ b/src/testdir/test_history.vim @@ -1,6 +1,5 @@ " Tests for the history functions -source check.vim CheckFeature cmdline_hist set history=7 diff --git a/src/testdir/test_hlsearch.vim b/src/testdir/test_hlsearch.vim index 557fe5da5..18992d32b 100644 --- a/src/testdir/test_hlsearch.vim +++ b/src/testdir/test_hlsearch.vim @@ -1,6 +1,5 @@ " Test for v:hlsearch -source check.vim source screendump.vim func Test_hlsearch() diff --git a/src/testdir/test_iminsert.vim b/src/testdir/test_iminsert.vim index 11fe24ee4..e20cddd3c 100644 --- a/src/testdir/test_iminsert.vim +++ b/src/testdir/test_iminsert.vim @@ -1,7 +1,5 @@ " Test for 'iminsert' -source view_util.vim -source check.vim import './vim9.vim' as v9 let s:imactivatefunc_called = 0 diff --git a/src/testdir/test_indent.vim b/src/testdir/test_indent.vim index 57f5206e7..e20694792 100644 --- a/src/testdir/test_indent.vim +++ b/src/testdir/test_indent.vim @@ -1,8 +1,5 @@ " Test for various indent options -source shared.vim -source check.vim - func Test_preserveindent() new " Test for autoindent copying indent from the previous line diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim index f1ed31393..d906e7ad6 100644 --- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -1,7 +1,6 @@ " Test for insert completion source screendump.vim -source check.vim import './vim9.vim' as v9 " Test for insert expansion diff --git a/src/testdir/test_job_fails.vim b/src/testdir/test_job_fails.vim index 1751d1d5b..b8eee916c 100644 --- a/src/testdir/test_job_fails.vim +++ b/src/testdir/test_job_fails.vim @@ -2,8 +2,6 @@ " leaks under valgrind. That is because when fork/exec fails memory is not " freed. Since the process exits right away it's not a real leak. -source check.vim - func Test_job_start_fails() CheckFeature job let job = job_start('axdfxsdf') diff --git a/src/testdir/test_lambda.vim b/src/testdir/test_lambda.vim index f05080e08..42f53b1eb 100644 --- a/src/testdir/test_lambda.vim +++ b/src/testdir/test_lambda.vim @@ -1,6 +1,5 @@ " Test for lambda and closure -source check.vim import './vim9.vim' as v9 func Test_lambda_feature() diff --git a/src/testdir/test_langmap.vim b/src/testdir/test_langmap.vim index aaed77e10..4a8427732 100644 --- a/src/testdir/test_langmap.vim +++ b/src/testdir/test_langmap.vim @@ -1,6 +1,5 @@ " tests for 'langmap' -source check.vim CheckFeature langmap func Test_langmap() diff --git a/src/testdir/test_listchars.vim b/src/testdir/test_listchars.vim index 8bed38a58..387f6afd6 100644 --- a/src/testdir/test_listchars.vim +++ b/src/testdir/test_listchars.vim @@ -1,7 +1,5 @@ " Tests for 'listchars' display with 'list' and :list -source check.vim -source view_util.vim source screendump.vim func Check_listchars(expected, end_lnum, end_scol = -1, leftcol = 0) diff --git a/src/testdir/test_listlbr.vim b/src/testdir/test_listlbr.vim index 68bf94865..d1869838e 100644 --- a/src/testdir/test_listlbr.vim +++ b/src/testdir/test_listlbr.vim @@ -3,11 +3,9 @@ set encoding=latin1 scriptencoding latin1 -source check.vim CheckOption linebreak CheckFeature conceal -source view_util.vim source screendump.vim function s:screen_lines(lnum, width) abort diff --git a/src/testdir/test_listlbr_utf8.vim b/src/testdir/test_listlbr_utf8.vim index bd0578eff..d69cae76d 100644 --- a/src/testdir/test_listlbr_utf8.vim +++ b/src/testdir/test_listlbr_utf8.vim @@ -3,12 +3,10 @@ set encoding=utf-8 scriptencoding utf-8 -source check.vim CheckOption linebreak CheckFeature conceal CheckFeature signs -source view_util.vim source screendump.vim func s:screen_lines(lnum, width) abort diff --git a/src/testdir/test_lua.vim b/src/testdir/test_lua.vim index 043531a55..7e61de22c 100644 --- a/src/testdir/test_lua.vim +++ b/src/testdir/test_lua.vim @@ -1,7 +1,5 @@ " Tests for Lua. -source check.vim - " This test also works without the lua feature. func Test_skip_lua() if 0 diff --git a/src/testdir/test_makeencoding.vim b/src/testdir/test_makeencoding.vim index f3dc82bc5..40bad97fb 100644 --- a/src/testdir/test_makeencoding.vim +++ b/src/testdir/test_makeencoding.vim @@ -1,8 +1,5 @@ " Tests for 'makeencoding'. -source shared.vim -source check.vim - CheckFeature quickfix let s:python = PythonProg() if s:python == '' diff --git a/src/testdir/test_map_functions.vim b/src/testdir/test_map_functions.vim index db639337f..8f98ef758 100644 --- a/src/testdir/test_map_functions.vim +++ b/src/testdir/test_map_functions.vim @@ -1,8 +1,6 @@ " Tests for maparg(), mapcheck(), mapset(), maplist() " Also test utf8 map with a 0x80 byte. -source shared.vim - func s:SID() return str2nr(matchstr(expand('<sfile>'), '<SNR>\zs\d\+\ze_SID$')) endfunc diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim index c3525315f..28b0188b7 100644 --- a/src/testdir/test_mapping.vim +++ b/src/testdir/test_mapping.vim @@ -1,9 +1,6 @@ " Tests for mappings and abbreviations -source shared.vim -source check.vim source screendump.vim -source term_util.vim import './vim9.vim' as v9 func Test_abbreviation() diff --git a/src/testdir/test_match.vim b/src/testdir/test_match.vim index 1e42aba40..35311d432 100644 --- a/src/testdir/test_match.vim +++ b/src/testdir/test_match.vim @@ -2,7 +2,6 @@ " matchaddpos(), matcharg(), matchdelete(), and setmatches(). source screendump.vim -source check.vim function Test_match() highlight MyGroup1 term=bold ctermbg=red guibg=red diff --git a/src/testdir/test_matchadd_conceal.vim b/src/testdir/test_matchadd_conceal.vim index 1602c4f15..764e8c6e3 100644 --- a/src/testdir/test_matchadd_conceal.vim +++ b/src/testdir/test_matchadd_conceal.vim @@ -1,16 +1,11 @@ " Test for matchadd() and conceal feature -source check.vim CheckFeature conceal if !has('gui_running') && has('unix') set term=ansi endif -source shared.vim -source term_util.vim -source view_util.vim - func Test_simple_matchadd() new diff --git a/src/testdir/test_matchadd_conceal_utf8.vim b/src/testdir/test_matchadd_conceal_utf8.vim index 83849e133..bc8a97c40 100644 --- a/src/testdir/test_matchadd_conceal_utf8.vim +++ b/src/testdir/test_matchadd_conceal_utf8.vim @@ -1,6 +1,5 @@ " Test for matchadd() and conceal feature using utf-8. -source check.vim CheckFeature conceal if !has('gui_running') && has('unix') diff --git a/src/testdir/test_matchfuzzy.vim b/src/testdir/test_matchfuzzy.vim index a16bae5ee..8aa7f3218 100644 --- a/src/testdir/test_matchfuzzy.vim +++ b/src/testdir/test_matchfuzzy.vim @@ -1,9 +1,5 @@ " Tests for fuzzy matching -source shared.vim -source check.vim -source term_util.vim - " Test for matchfuzzy() func Test_matchfuzzy() call assert_fails('call matchfuzzy(10, "abc")', 'E686:') diff --git a/src/testdir/test_memory_usage.vim b/src/testdir/test_memory_usage.vim index 13e7eec87..66c27a1f7 100644 --- a/src/testdir/test_memory_usage.vim +++ b/src/testdir/test_memory_usage.vim @@ -1,6 +1,5 @@ " Tests for memory usage. -source check.vim CheckFeature terminal CheckNotGui @@ -8,8 +7,6 @@ CheckNotGui " usage. CheckNotAsan -source shared.vim - func s:pick_nr(str) abort return substitute(a:str, '[^0-9]', '', 'g') * 1 endfunc diff --git a/src/testdir/test_menu.vim b/src/testdir/test_menu.vim index 8ac1da55c..f441190d9 100644 --- a/src/testdir/test_menu.vim +++ b/src/testdir/test_menu.vim @@ -1,6 +1,5 @@ " Test that the system menu can be loaded. -source check.vim CheckFeature menu source screendump.vim diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim index e1eab59eb..e9eb0991d 100644 --- a/src/testdir/test_messages.vim +++ b/src/testdir/test_messages.vim @@ -1,9 +1,5 @@ " Tests for :messages, :echomsg, :echoerr -source check.vim -source shared.vim -source term_util.vim -source view_util.vim source screendump.vim func Test_messages() diff --git a/src/testdir/test_method.vim b/src/testdir/test_method.vim index 99e4917c0..797aa60ce 100644 --- a/src/testdir/test_method.vim +++ b/src/testdir/test_method.vim @@ -1,7 +1,5 @@ " Tests for ->method() -source check.vim - func Test_list_method() let l = [1, 2, 3] call assert_equal([1, 2, 3, 4], [1, 2, 3]->add(4)) diff --git a/src/testdir/test_mksession.vim b/src/testdir/test_mksession.vim index 8217d91b8..c4d8fd7ee 100644 --- a/src/testdir/test_mksession.vim +++ b/src/testdir/test_mksession.vim @@ -3,12 +3,8 @@ set encoding=latin1 scriptencoding latin1 -source check.vim CheckFeature mksession -source shared.vim -source term_util.vim - " Test for storing global and local argument list in a session file " This one must be done first. func Test__mksession_arglocal() diff --git a/src/testdir/test_mksession_utf8.vim b/src/testdir/test_mksession_utf8.vim index 387d128f6..d467dc20c 100644 --- a/src/testdir/test_mksession_utf8.vim +++ b/src/testdir/test_mksession_utf8.vim @@ -3,7 +3,6 @@ set encoding=utf-8 scriptencoding utf-8 -source check.vim CheckFeature mksession func Test_mksession_utf8() diff --git a/src/testdir/test_modeless.vim b/src/testdir/test_modeless.vim index 281c24867..d96be4bd0 100644 --- a/src/testdir/test_modeless.vim +++ b/src/testdir/test_modeless.vim @@ -1,11 +1,9 @@ " Test for modeless selection " This only works for Unix in a terminal -source check.vim CheckNotGui CheckUnix -source shared.vim source mouse.vim " Test for modeless characterwise selection (single click) diff --git a/src/testdir/test_modeline.vim b/src/testdir/test_modeline.vim index 0697fbbce..1f8686328 100644 --- a/src/testdir/test_modeline.vim +++ b/src/testdir/test_modeline.vim @@ -1,7 +1,5 @@ " Tests for parsing the modeline. -source check.vim - func Test_modeline_invalid() " This was reading allocated memory in the past. call writefile(['vi:0', 'nothing'], 'Xmodeline', 'D') diff --git a/src/testdir/test_move.vim b/src/testdir/test_move.vim index d932a60e0..c45157f27 100644 --- a/src/testdir/test_move.vim +++ b/src/testdir/test_move.vim @@ -1,6 +1,5 @@ " Test the ":move" command. -source check.vim source screendump.vim func Test_move() diff --git a/src/testdir/test_mswin_event.vim b/src/testdir/test_mswin_event.vim index 3b7b3c7d5..0a4407c31 100644 --- a/src/testdir/test_mswin_event.vim +++ b/src/testdir/test_mswin_event.vim @@ -1,7 +1,6 @@ " Test MS-Windows input event handling. " Most of this works the same in Windows GUI as well as Windows console. -source check.vim CheckMSWindows source mouse.vim diff --git a/src/testdir/test_mzscheme.vim b/src/testdir/test_mzscheme.vim index 0bc98421d..a6f57a893 100644 --- a/src/testdir/test_mzscheme.vim +++ b/src/testdir/test_mzscheme.vim @@ -1,6 +1,5 @@ " Test for MzScheme interface and mzeval() function -source check.vim CheckFeature mzscheme func MzRequire() diff --git a/src/testdir/test_nested_function.vim b/src/testdir/test_nested_function.vim index 559965546..9b8f56436 100644 --- a/src/testdir/test_nested_function.vim +++ b/src/testdir/test_nested_function.vim @@ -1,7 +1,5 @@ " Tests for nested functions -source check.vim - func NestedFunc() func! Func1() let g:text .= 'Func1 ' diff --git a/src/testdir/test_netbeans.vim b/src/testdir/test_netbeans.vim index e458e3896..cfb973692 100644 --- a/src/testdir/test_netbeans.vim +++ b/src/testdir/test_netbeans.vim @@ -1,10 +1,7 @@ " Test the netbeans interface. -source check.vim CheckFeature netbeans_intg -source shared.vim - let s:python = PythonProg() if s:python == '' throw 'Skipped: python program missing' diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim index a0ee3b80b..aa1fa1034 100644 --- a/src/testdir/test_normal.vim +++ b/src/testdir/test_normal.vim @@ -1,8 +1,5 @@ " Test for various Normal mode commands -source shared.vim -source check.vim -source view_util.vim import './vim9.vim' as v9 source screendump.vim diff --git a/src/testdir/test_number.vim b/src/testdir/test_number.vim index b57c1ed2c..10b69881f 100644 --- a/src/testdir/test_number.vim +++ b/src/testdir/test_number.vim @@ -1,8 +1,5 @@ " Test for 'number' and 'relativenumber' -source check.vim -source view_util.vim - source screendump.vim func s:screen_lines(start, end) abort diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index 21e4a0357..e4bf63a6b 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -1,9 +1,5 @@ " Test for options -source shared.vim -source check.vim -source view_util.vim - scriptencoding utf-8 func Test_whichwrap() diff --git a/src/testdir/test_packadd.vim b/src/testdir/test_packadd.vim index eab710def..cd7126a9d 100644 --- a/src/testdir/test_packadd.vim +++ b/src/testdir/test_packadd.vim @@ -1,7 +1,5 @@ " Tests for 'packpath' and :packadd -source check.vim - func SetUp() let s:topdir = getcwd() . '/Xppdir' exe 'set packpath=' . s:topdir diff --git a/src/testdir/test_partial.vim b/src/testdir/test_partial.vim index acc8b73c8..a6ba84a7b 100644 --- a/src/testdir/test_partial.vim +++ b/src/testdir/test_partial.vim @@ -1,7 +1,5 @@ " Test binding arguments to a Funcref. -source check.vim - func MyFunc(arg1, arg2, arg3) return a:arg1 . '/' . a:arg2 . '/' . a:arg3 endfunc diff --git a/src/testdir/test_paste.vim b/src/testdir/test_paste.vim index b35fc8123..bd87e3be7 100644 --- a/src/testdir/test_paste.vim +++ b/src/testdir/test_paste.vim @@ -1,15 +1,11 @@ " Tests for bracketed paste and other forms of pasting. " Bracketed paste only works with "xterm". Not in GUI or Windows console. -source check.vim -source term_util.vim CheckNotMSWindows CheckNotGui set term=xterm -source shared.vim - func Test_paste_normal_mode() new " In first column text is inserted diff --git a/src/testdir/test_perl.vim b/src/testdir/test_perl.vim index 31329ca79..cededb2e4 100644 --- a/src/testdir/test_perl.vim +++ b/src/testdir/test_perl.vim @@ -1,7 +1,5 @@ " Tests for Perl interface -source check.vim -source shared.vim CheckFeature perl " FIXME: RunTest don't see any error when Perl abort... diff --git a/src/testdir/test_plugin_comment.vim b/src/testdir/test_plugin_comment.vim index 1c5074813..c07d21a29 100644 --- a/src/testdir/test_plugin_comment.vim +++ b/src/testdir/test_plugin_comment.vim @@ -1,8 +1,5 @@ " Test for the comment package -source check.vim -source term_util.vim - func Test_basic_comment() CheckScreendump let lines =<< trim END diff --git a/src/testdir/test_plugin_matchparen.vim b/src/testdir/test_plugin_matchparen.vim index 74563a19a..47fd3ed05 100644 --- a/src/testdir/test_plugin_matchparen.vim +++ b/src/testdir/test_plugin_matchparen.vim @@ -4,8 +4,6 @@ if !has('gui_running') && has('unix') set term=ansi endif -source view_util.vim -source check.vim source screendump.vim " Test for scrolling that modifies buffer during visual block diff --git a/src/testdir/test_plugin_termdebug.vim b/src/testdir/test_plugin_termdebug.vim index a045a8dad..9017bda9f 100644 --- a/src/testdir/test_plugin_termdebug.vim +++ b/src/testdir/test_plugin_termdebug.vim @@ -1,8 +1,6 @@ " Test for the termdebug plugin -source shared.vim source screendump.vim -source check.vim CheckUnix CheckFeature terminal diff --git a/src/testdir/test_plugin_tohtml.vim b/src/testdir/test_plugin_tohtml.vim index a1c857273..a5c9d27b6 100644 --- a/src/testdir/test_plugin_tohtml.vim +++ b/src/testdir/test_plugin_tohtml.vim @@ -1,7 +1,5 @@ " Tests for Vim :TOhtml -source check.vim - func s:setup_basic(src_name) let lines =<< trim END #include <stdio.h> diff --git a/src/testdir/test_plugin_tutor.vim b/src/testdir/test_plugin_tutor.vim index 5b85b650e..5c3dcd949 100644 --- a/src/testdir/test_plugin_tutor.vim +++ b/src/testdir/test_plugin_tutor.vim @@ -1,7 +1,6 @@ " Test for the new-tutor plugin source screendump.vim -source check.vim source script_util.vim func SetUp() diff --git a/src/testdir/test_plugin_zip.vim b/src/testdir/test_plugin_zip.vim index 2050b4ce1..516f54e3a 100644 --- a/src/testdir/test_plugin_zip.vim +++ b/src/testdir/test_plugin_zip.vim @@ -1,5 +1,3 @@ -so check.vim - CheckExecutable unzip if 0 " Find uncovered line diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index 0ace290d2..7e268e80c 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -1,8 +1,6 @@ " Test for completion menu -source shared.vim source screendump.vim -source check.vim let g:months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] let g:setting = '' diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim index f01b74926..6464e1eab 100644 --- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -1,10 +1,8 @@ " Tests for popup windows -source check.vim CheckFeature popupwin source screendump.vim -source term_util.vim func Test_simple_popup() CheckScreendump diff --git a/src/testdir/test_popupwin_textprop.vim b/src/testdir/test_popupwin_textprop.vim index 50e284880..a09938320 100644 --- a/src/testdir/test_popupwin_textprop.vim +++ b/src/testdir/test_popupwin_textprop.vim @@ -1,6 +1,5 @@ " Tests for popup windows for text properties -source check.vim CheckFeature popupwin CheckFeature textprop diff --git a/src/testdir/test_preview.vim b/src/testdir/test_preview.vim index 7c7883ace..e06139c3f 100644 --- a/src/testdir/test_preview.vim +++ b/src/testdir/test_preview.vim @@ -1,6 +1,5 @@ " Tests for the preview window -source check.vim CheckFeature quickfix func Test_Psearch() diff --git a/src/testdir/test_profile.vim b/src/testdir/test_profile.vim index 534cc768c..8c0260cbb 100644 --- a/src/testdir/test_profile.vim +++ b/src/testdir/test_profile.vim @@ -1,9 +1,7 @@ " Test Vim profiler -source check.vim CheckFeature profile -source shared.vim source screendump.vim if has('prof_nsec') diff --git a/src/testdir/test_prompt_buffer.vim b/src/testdir/test_prompt_buffer.vim index c5ef01034..414ed6e6c 100644 --- a/src/testdir/test_prompt_buffer.vim +++ b/src/testdir/test_prompt_buffer.vim @@ -1,9 +1,7 @@ " Tests for setting 'buftype' to "prompt" -source check.vim CheckFeature channel -source shared.vim source screendump.vim func CanTestPromptBuffer() diff --git a/src/testdir/test_put.vim b/src/testdir/test_put.vim index 5a99b3b63..91a01a4f2 100644 --- a/src/testdir/test_put.vim +++ b/src/testdir/test_put.vim @@ -1,6 +1,5 @@ " Tests for put commands, e.g. ":put", "p", "gp", "P", "gP", etc. -source check.vim source screendump.vim func Test_put_block() diff --git a/src/testdir/test_python2.vim b/src/testdir/test_python2.vim index cafba3de5..30c3b33a9 100644 --- a/src/testdir/test_python2.vim +++ b/src/testdir/test_python2.vim @@ -1,9 +1,7 @@ " Test for python 2 commands. -source check.vim CheckFeature python CheckFeature quickfix -source shared.vim " NOTE: This will cause errors when run under valgrind. " This would require recompiling Python with: diff --git a/src/testdir/test_python3.vim b/src/testdir/test_python3.vim index e59ddf93c..bd000ef05 100644 --- a/src/testdir/test_python3.vim +++ b/src/testdir/test_python3.vim @@ -1,8 +1,6 @@ " Test for python 3 commands. -source check.vim CheckFeature python3 -source shared.vim func Create_vim_list() return [1] diff --git a/src/testdir/test_pyx2.vim b/src/testdir/test_pyx2.vim index 68f1901e2..40b359afa 100644 --- a/src/testdir/test_pyx2.vim +++ b/src/testdir/test_pyx2.vim @@ -1,7 +1,6 @@ " Test for pyx* commands and functions with Python 2. set pyx=2 -source check.vim CheckFeature python let s:py2pattern = '^2\.[0-7]\.\d\+' diff --git a/src/testdir/test_pyx3.vim b/src/testdir/test_pyx3.vim index b02f447e2..7820cc9c3 100644 --- a/src/testdir/test_pyx3.vim +++ b/src/testdir/test_pyx3.vim @@ -1,7 +1,6 @@ " Test for pyx* commands and functions with Python 3. set pyx=3 -source check.vim CheckFeature python3 let s:py2pattern = '^2\.[0-7]\.\d\+' diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim index dc2a2a4c5..7047d8c2b 100644 --- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -1,6 +1,5 @@ " Test for the quickfix feature. -source check.vim import './vim9.vim' as v9 CheckFeature quickfix diff --git a/src/testdir/test_quotestar.vim b/src/testdir/test_quotestar.vim index 322ce6260..7ccee43a5 100644 --- a/src/testdir/test_quotestar.vim +++ b/src/testdir/test_quotestar.vim @@ -1,8 +1,5 @@ " *-register (quotestar) tests -source shared.vim -source check.vim - CheckFeature clipboard_working func Do_test_quotestar_for_macunix() diff --git a/src/testdir/test_random.vim b/src/testdir/test_random.vim index be8473f29..02a4624c1 100644 --- a/src/testdir/test_random.vim +++ b/src/testdir/test_random.vim @@ -1,8 +1,5 @@ " Tests for srand() and rand() -source check.vim -source shared.vim - func Test_Rand() let r = srand(123456789) call assert_equal([1573771921, 319883699, 2742014374, 1324369493], r) diff --git a/src/testdir/test_recover.vim b/src/testdir/test_recover.vim index e85b2e9b5..db59223c2 100644 --- a/src/testdir/test_recover.vim +++ b/src/testdir/test_recover.vim @@ -1,7 +1,5 @@ " Test :recover -source check.vim - func Test_recover_root_dir() " This used to access invalid memory. split Xtest diff --git a/src/testdir/test_regex_char_classes.vim b/src/testdir/test_regex_char_classes.vim index db16f057c..5e77c857f 100644 --- a/src/testdir/test_regex_char_classes.vim +++ b/src/testdir/test_regex_char_classes.vim @@ -1,6 +1,5 @@ " Tests for regexp with backslash and other special characters inside [] " Also test backslash for hex/octal numbered character. -" scriptencoding utf-8 @@ -20,7 +19,6 @@ function RunXTest(value, search_exp, expected) quit! endfunction - function Test_x_search() let res = "test text test text" call RunXTest("test \text test text", "/[\x]", res) diff --git a/src/testdir/test_regexp_latin.vim b/src/testdir/test_regexp_latin.vim index 63f093a1a..573cf139b 100644 --- a/src/testdir/test_regexp_latin.vim +++ b/src/testdir/test_regexp_latin.vim @@ -3,8 +3,6 @@ set encoding=latin1 scriptencoding latin1 -source check.vim - func s:equivalence_test() let str = 'A懒旅呐 B C D E壬仕 F G H I掏蜗 J K L M N�O矣哉重 P Q R S T U仝圮 V W X Y�Z ' \ .. 'a噌忏溴 b c d e栝觌 f g h i祉铒 j k l m n�o蝮趱鲽 p q r s t u v w x y� z ' diff --git a/src/testdir/test_regexp_utf8.vim b/src/testdir/test_regexp_utf8.vim index 51c0984ad..a4353f1b4 100644 --- a/src/testdir/test_regexp_utf8.vim +++ b/src/testdir/test_regexp_utf8.vim @@ -1,7 +1,5 @@ " Tests for regexp in utf8 encoding -source shared.vim - func s:equivalence_test() let str = "A脌脕脗脙脛脜膧膫膭菎菫菭呛葌圈群岣€岷犪孩岷め害岷ㄡ邯岷寒岷搬翰岷瘁憾 B苼蓛岣傖竸岣�C脟膯膱膴膶茋然岣堦瀿 D膸膼茒岣娽笇岣庒笎岣�E脠脡脢脣膾臄臇臉臍葎葐权蓡岣斸笘岣樶笟岣溼焊岷横杭岷踞粈峄傖粍峄�F茟岣炾灅 G臏臑臓蘑茡扦铅谴岣犼灎 H膜摩葹岣⑨袱岣︶辅岣抱 I脤脥脦脧抹莫默漠陌茥菑葓葕岣府峄堘粖 J拇蓤 K亩茦迁岣搬覆岣粹暴隄€ L墓幕慕目艁冉岣夺父岣横讣獗�M岣踞箑峁�N脩艃艆艊歉峁勧箚峁堘箠隇�O脪脫脭脮脰脴艑艓艕茻茽菓仟乾蔷葘葞泉痊犬劝峁屷箮峁愥箳峄屷粠峄愥粧峄斸粬峄樶粴峄溼粸峄犪虎 P皮峁斸箹獗�Q蓨 R艛艝艠葠葤蓪峁樶箽峁溼篂獗り灕 S艢艤艦艩葮峁犪耿峁め功峁ㄢ本隇�T泞扭纽片飘葰染峁宫峁拱 U脵脷脹脺浓弄努女虐漂菚菣菦菗菞葦葨蓜峁册勾峁夺垢峁横护峄︶花峄滑峄话 V撇峁坚咕 W糯岷€岷傖簞岷嗎簣 X岷娽簩 Y脻哦鸥瞥炔蓭岷庒徊峄瘁欢峄�Z殴呕沤频岷愥簰岷斺鲍 a脿谩芒茫盲氓膩膬膮菐菬恰腔葍颧岫忈竵岷氠骸岷a亥岷п憨岷涵岷罕岷翅旱岷封饱 b苺蓳岬秬岣冡竻岣�c莽膰膲膵膷茍燃岣夑灀隇�d膹膽蓷岬秮岫戓笅岣嶀笍岣戓笓 e猫茅锚毛膿臅臈臋臎葏葒醛蓢岫掅笗岣椺笝岣涐笣岷贯夯岷结嚎峄佱粌峄呩粐 f茠岬秱岣熽灆 g臐臒摹模钎千堑蔂岫冡浮隇�h磨魔葻岣a弗岣п俯岣簴獗灂 i矛铆卯茂末墨沫寞菒葔葖扫岫栣腑岣粔峄�j牡前蓧 k姆茩签岫勧副岣翅傅獗潄 l暮募木艀艂茪岣丰腹岣会附獗�m岬缚峁佱箖 n帽艅艈艌艍枪岬搬秶峁呩箛峁夅箣隇�o貌贸么玫枚酶艒艔艖啤菕谦黔强葝葟全拳券缺傻峁嶀箯峁戓箵峄嶀粡峄戓粨峄曖粭峄欋粵峄濁粺峄♂唬 p匹岬贬到岫堘箷峁�q蓩薁 r艜艞艡葢葥蓫山岬册党岫夅箾峁濁篃隇�s艣艥艧拧葯瓤岬瘁秺峁♂梗峁メ恭峁╆灘 t牛钮脓偏骗葲蕡岬滇公峁汞峁贬簵獗�u霉煤没眉农奴怒暖疟懦菤菛瓢菙菢菧葧葪蕢岬踞稒峁翅沟峁丰构峁会互峄п哗峄画峄槐 v蕥岫屷菇峁�w诺岷佱簝岷呩簢岷夅簶 x岷嬦簫 y媒每欧拼瘸蓮岷忈簷峄翅坏峄丰还 z藕偶啪贫岬夺稁岷戓簱岷曗爆" let groups = split(str) diff --git a/src/testdir/test_registers.vim b/src/testdir/test_registers.vim index 3615e1ece..b30b854e0 100644 --- a/src/testdir/test_registers.vim +++ b/src/testdir/test_registers.vim @@ -1,8 +1,5 @@ " Tests for register operations -source check.vim -source view_util.vim - " This test must be executed first to check for empty and unset registers. func Test_aaa_empty_reg_test() call assert_fails('normal @@', 'E748:') diff --git a/src/testdir/test_reltime.vim b/src/testdir/test_reltime.vim index 54104d511..14d0d7e6f 100644 --- a/src/testdir/test_reltime.vim +++ b/src/testdir/test_reltime.vim @@ -1,6 +1,5 @@ " Tests for reltime() -source check.vim CheckFeature reltime func Test_reltime() diff --git a/src/testdir/test_remote.vim b/src/testdir/test_remote.vim index fd8b0af24..a10cb1250 100644 --- a/src/testdir/test_remote.vim +++ b/src/testdir/test_remote.vim @@ -1,13 +1,10 @@ " Test for the --remote functionality -source check.vim CheckFeature clientserver CheckFeature terminal -source shared.vim source screendump.vim source mouse.vim -source term_util.vim let s:remote_works = 0 let s:skip = 'Skipped: --remote feature is not possible' diff --git a/src/testdir/test_rename.vim b/src/testdir/test_rename.vim index 26efe5c48..b1264a6c4 100644 --- a/src/testdir/test_rename.vim +++ b/src/testdir/test_rename.vim @@ -1,7 +1,5 @@ " Test rename() -source shared.vim - func Test_rename_file_to_file() call writefile(['foo'], 'Xrename1') diff --git a/src/testdir/test_restricted.vim b/src/testdir/test_restricted.vim index d01406eb0..3099dfec1 100644 --- a/src/testdir/test_restricted.vim +++ b/src/testdir/test_restricted.vim @@ -1,7 +1,5 @@ " Test for "rvim" or "vim -Z" -source shared.vim - "if has('win32') && has('gui') " " Win32 GUI shows a dialog instead of displaying the error in the last line. " finish diff --git a/src/testdir/test_retab.vim b/src/testdir/test_retab.vim index a4f95053c..8cd6f77be 100644 --- a/src/testdir/test_retab.vim +++ b/src/testdir/test_retab.vim @@ -1,7 +1,5 @@ " Test :retab -source check.vim - func SetUp() new call setline(1, " a b c ") diff --git a/src/testdir/test_ruby.vim b/src/testdir/test_ruby.vim index d4ff8e0b7..e5af66500 100644 --- a/src/testdir/test_ruby.vim +++ b/src/testdir/test_ruby.vim @@ -1,6 +1,5 @@ " Tests for ruby interface -source check.vim CheckFeature ruby func Test_ruby_change_buffer() diff --git a/src/testdir/test_scroll_opt.vim b/src/testdir/test_scroll_opt.vim index 7573db9ac..b4780ebc3 100644 --- a/src/testdir/test_scroll_opt.vim +++ b/src/testdir/test_scroll_opt.vim @@ -1,6 +1,5 @@ " Test for 'scroll', 'scrolloff', 'smoothscroll', etc. -source check.vim source screendump.vim source mouse.vim diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim index 446d5ecd3..2921e1958 100644 --- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -1,8 +1,6 @@ " Test for the search command -source shared.vim source screendump.vim -source check.vim func Test_search_cmdline() CheckOption incsearch diff --git a/src/testdir/test_search_stat.vim b/src/testdir/test_search_stat.vim index c8e055d7d..72d4bcd36 100644 --- a/src/testdir/test_search_stat.vim +++ b/src/testdir/test_search_stat.vim @@ -1,6 +1,5 @@ " Tests for search_stats, when "S" is not in 'shortmess' -source check.vim source screendump.vim func Test_search_stat() diff --git a/src/testdir/test_selectmode.vim b/src/testdir/test_selectmode.vim index 63aa0b9a1..705c4ce90 100644 --- a/src/testdir/test_selectmode.vim +++ b/src/testdir/test_selectmode.vim @@ -1,7 +1,6 @@ " Test for Select-mode " This only works for Unix in a terminal -source check.vim CheckNotGui CheckUnix diff --git a/src/testdir/test_set.vim b/src/testdir/test_set.vim index f38ac334c..199cdd45c 100644 --- a/src/testdir/test_set.vim +++ b/src/testdir/test_set.vim @@ -1,7 +1,5 @@ " Tests for the :set command -source check.vim - function Test_set_backslash() let isk_save = &isk diff --git a/src/testdir/test_sha256.vim b/src/testdir/test_sha256.vim index a1bec978b..3db1b2a99 100644 --- a/src/testdir/test_sha256.vim +++ b/src/testdir/test_sha256.vim @@ -1,6 +1,5 @@ " Tests for the sha256() function. -source check.vim CheckFeature cryptv CheckFunction sha256 diff --git a/src/testdir/test_shell.vim b/src/testdir/test_shell.vim index 667b158ce..647d34870 100644 --- a/src/testdir/test_shell.vim +++ b/src/testdir/test_shell.vim @@ -1,9 +1,6 @@ " Test for the shell related options ('shell', 'shellcmdflag', 'shellpipe', " 'shellquote', 'shellredir', 'shellxescape', and 'shellxquote') -source check.vim -source shared.vim - func Test_shell_options() if has('win32') " FIXME: This test is flaky on MS-Windows. diff --git a/src/testdir/test_shift.vim b/src/testdir/test_shift.vim index f31c5a11e..da9a00620 100644 --- a/src/testdir/test_shift.vim +++ b/src/testdir/test_shift.vim @@ -1,7 +1,5 @@ " Test shifting lines with :> and :< -source check.vim - func Test_ex_shift_right() set shiftwidth=2 diff --git a/src/testdir/test_shortpathname.vim b/src/testdir/test_shortpathname.vim index 0c41692a0..b3d7b82be 100644 --- a/src/testdir/test_shortpathname.vim +++ b/src/testdir/test_shortpathname.vim @@ -4,7 +4,6 @@ set encoding=utf-8 scriptencoding utf-8 -source check.vim CheckMSWindows func TestIt(file, bits, expected) diff --git a/src/testdir/test_signals.vim b/src/testdir/test_signals.vim index 4b6c7345c..351560024 100644 --- a/src/testdir/test_signals.vim +++ b/src/testdir/test_signals.vim @@ -1,12 +1,7 @@ " Test signal handling. -source check.vim -source term_util.vim - CheckUnix -source shared.vim - " Check whether a signal is available on this system. func HasSignal(signal) let signals = system('kill -l') diff --git a/src/testdir/test_signs.vim b/src/testdir/test_signs.vim index e66e6fa01..78988b246 100644 --- a/src/testdir/test_signs.vim +++ b/src/testdir/test_signs.vim @@ -1,6 +1,5 @@ " Test for signs -source check.vim CheckFeature signs source screendump.vim diff --git a/src/testdir/test_sort.vim b/src/testdir/test_sort.vim index 14a70cf93..60b021242 100644 --- a/src/testdir/test_sort.vim +++ b/src/testdir/test_sort.vim @@ -1,7 +1,5 @@ " Tests for the "sort()" function and for the ":sort" command. -source check.vim - func Compare1(a, b) abort call sort(range(3), 'Compare2') return a:a - a:b diff --git a/src/testdir/test_sound.vim b/src/testdir/test_sound.vim index 401753e66..fba904c1d 100644 --- a/src/testdir/test_sound.vim +++ b/src/testdir/test_sound.vim @@ -1,8 +1,5 @@ " Tests for the sound feature -source check.vim -source shared.vim - CheckFeature sound func PlayCallback(id, result) diff --git a/src/testdir/test_source.vim b/src/testdir/test_source.vim index 55b2ffff2..b7b0d1175 100644 --- a/src/testdir/test_source.vim +++ b/src/testdir/test_source.vim @@ -1,8 +1,5 @@ " Tests for the :source command. -source check.vim -source view_util.vim - func Test_source_autocmd() call writefile([ \ 'let did_source = 1', diff --git a/src/testdir/test_source_utf8.vim b/src/testdir/test_source_utf8.vim index bd7cd8d24..13758164f 100644 --- a/src/testdir/test_source_utf8.vim +++ b/src/testdir/test_source_utf8.vim @@ -1,7 +1,5 @@ " Test the :source! command -source check.vim - func Test_source_utf8() " check that sourcing a script with 0x80 as second byte works new diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index 692e191a3..0d8ec9953 100644 --- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -1,11 +1,9 @@ " Test spell checking " Note: this file uses latin1 encoding, but is used with utf-8 encoding. -source check.vim CheckFeature spell source screendump.vim -source view_util.vim func TearDown() set nospell diff --git a/src/testdir/test_spell_utf8.vim b/src/testdir/test_spell_utf8.vim index bb2c354a3..2a5e8091f 100644 --- a/src/testdir/test_spell_utf8.vim +++ b/src/testdir/test_spell_utf8.vim @@ -1,6 +1,5 @@ " Test for spell checking with 'encoding' set to utf-8 -source check.vim CheckFeature spell scriptencoding utf-8 diff --git a/src/testdir/test_spellfile.vim b/src/testdir/test_spellfile.vim index dd12698b9..b72974ed0 100644 --- a/src/testdir/test_spellfile.vim +++ b/src/testdir/test_spellfile.vim @@ -1,8 +1,5 @@ " Test for commands that operate on the spellfile. -source shared.vim -source check.vim - CheckFeature spell CheckFeature syntax diff --git a/src/testdir/test_spellrare.vim b/src/testdir/test_spellrare.vim index ceb35cbd1..9dcd12c97 100644 --- a/src/testdir/test_spellrare.vim +++ b/src/testdir/test_spellrare.vim @@ -1,6 +1,5 @@ " Test spell checking -source check.vim CheckFeature spell " Test spellbadword() with argument, specifically to move to "rare" words diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index c56173e26..cd9935527 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -1,9 +1,6 @@ " Tests for startup. -source shared.vim source screendump.vim -source term_util.vim -source check.vim " Check that loading startup.vim works. func Test_startup_script() diff --git a/src/testdir/test_startup_utf8.vim b/src/testdir/test_startup_utf8.vim index 937766767..f31c15067 100644 --- a/src/testdir/test_startup_utf8.vim +++ b/src/testdir/test_startup_utf8.vim @@ -1,7 +1,5 @@ " Tests for startup using utf-8. -source check.vim -source shared.vim source screendump.vim func Test_read_stdin_utf8() diff --git a/src/testdir/test_stat.vim b/src/testdir/test_stat.vim index ed123e434..b616870ef 100644 --- a/src/testdir/test_stat.vim +++ b/src/testdir/test_stat.vim @@ -1,7 +1,5 @@ " Tests for stat functions and checktime -source check.vim - func CheckFileTime(doSleep) let fnames = ['Xtest1.tmp', 'Xtest2.tmp', 'Xtest3.tmp'] let times = [] diff --git a/src/testdir/test_statusline.vim b/src/testdir/test_statusline.vim index f2204db57..7883af342 100644 --- a/src/testdir/test_statusline.vim +++ b/src/testdir/test_statusline.vim @@ -3,8 +3,6 @@ " Not tested yet: " %N -source view_util.vim -source check.vim source screendump.vim func SetUp() diff --git a/src/testdir/test_substitute.vim b/src/testdir/test_substitute.vim index 21527db5f..ef352b963 100644 --- a/src/testdir/test_substitute.vim +++ b/src/testdir/test_substitute.vim @@ -1,7 +1,5 @@ " Tests for the substitute (:s) command -source shared.vim -source check.vim source screendump.vim " NOTE: This needs to be the first test to be diff --git a/src/testdir/test_suspend.vim b/src/testdir/test_suspend.vim index 5175c0f63..ae05dd21f 100644 --- a/src/testdir/test_suspend.vim +++ b/src/testdir/test_suspend.vim @@ -1,9 +1,5 @@ " Test :suspend -source check.vim -source term_util.vim -source shared.vim - func CheckSuspended(buf, fileExists) call WaitForAssert({-> assert_match('[$#] $', term_getline(a:buf, '.'))}) diff --git a/src/testdir/test_swap.vim b/src/testdir/test_swap.vim index 4ba7bb6c1..b599bf76e 100644 --- a/src/testdir/test_swap.vim +++ b/src/testdir/test_swap.vim @@ -1,9 +1,5 @@ " Tests for the swap feature -source check.vim -source shared.vim -source term_util.vim - func s:swapname() return trim(execute('swapname')) endfunc diff --git a/src/testdir/test_syntax.vim b/src/testdir/test_syntax.vim index d152ec5c3..6c56ceba1 100644 --- a/src/testdir/test_syntax.vim +++ b/src/testdir/test_syntax.vim @@ -1,9 +1,7 @@ " Test for syntax and syntax iskeyword option -source check.vim CheckFeature syntax -source view_util.vim source screendump.vim func GetSyntaxItem(pat) diff --git a/src/testdir/test_system.vim b/src/testdir/test_system.vim index 879eaed3b..4e0c349ec 100644 --- a/src/testdir/test_system.vim +++ b/src/testdir/test_system.vim @@ -1,8 +1,5 @@ " Tests for system() and systemlist() -source shared.vim -source check.vim - func Test_System() if !has('win32') call assert_equal("123 ", system('echo 123')) diff --git a/src/testdir/test_tabline.vim b/src/testdir/test_tabline.vim index 3cba2aab4..d00626a6c 100644 --- a/src/testdir/test_tabline.vim +++ b/src/testdir/test_tabline.vim @@ -1,8 +1,5 @@ " Test for tabline -source shared.vim -source view_util.vim -source check.vim source screendump.vim func TablineWithCaughtError() diff --git a/src/testdir/test_tabpage.vim b/src/testdir/test_tabpage.vim index 0e219e20b..a99753ef1 100644 --- a/src/testdir/test_tabpage.vim +++ b/src/testdir/test_tabpage.vim @@ -1,7 +1,6 @@ " Tests for tabpage source screendump.vim -source check.vim function Test_tabpage() CheckFeature quickfix diff --git a/src/testdir/test_tabpanel.vim b/src/testdir/test_tabpanel.vim index 4d2fca140..257c38da8 100644 --- a/src/testdir/test_tabpanel.vim +++ b/src/testdir/test_tabpanel.vim @@ -1,6 +1,5 @@ " Tests for tabpanel -source check.vim source screendump.vim CheckFeature tabpanel diff --git a/src/testdir/test_tagfunc.vim b/src/testdir/test_tagfunc.vim index 96ed10947..cceaf45c2 100644 --- a/src/testdir/test_tagfunc.vim +++ b/src/testdir/test_tagfunc.vim @@ -1,7 +1,6 @@ " Test 'tagfunc' import './vim9.vim' as v9 -source check.vim source screendump.vim func TagFunc(pat, flag, info) diff --git a/src/testdir/test_tagjump.vim b/src/testdir/test_tagjump.vim index f53d9b88f..1947ab2d3 100644 --- a/src/testdir/test_tagjump.vim +++ b/src/testdir/test_tagjump.vim @@ -1,6 +1,5 @@ " Tests for tagjump (tags and special searches) -source check.vim source screendump.vim " SEGV occurs in older versions. (At least 7.4.1748 or older) diff --git a/src/testdir/test_taglist.vim b/src/testdir/test_taglist.vim index c5c7df2a9..5a946042b 100644 --- a/src/testdir/test_taglist.vim +++ b/src/testdir/test_taglist.vim @@ -1,8 +1,5 @@ " test taglist(), tagfiles() functions and :tags command -source check.vim -source view_util.vim - func Test_taglist() call writefile([ \ "FFoo Xfoo 1", diff --git a/src/testdir/test_tcl.vim b/src/testdir/test_tcl.vim index 68a6d63a5..a60c90985 100644 --- a/src/testdir/test_tcl.vim +++ b/src/testdir/test_tcl.vim @@ -1,6 +1,5 @@ " Tests for the Tcl interface. -source check.vim CheckFeature tcl " Helper function as there is no builtin tcleval() function similar diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim index 8fe77b0cf..e44ca466a 100644 --- a/src/testdir/test_termcodes.vim +++ b/src/testdir/test_termcodes.vim @@ -1,14 +1,10 @@ " Tests for decoding escape sequences sent by the terminal. " This only works for Unix in a terminal -source check.vim CheckNotGui CheckUnix -source shared.vim source mouse.vim -source view_util.vim -source term_util.vim func s:TermGuiColorsTest() CheckNotMSWindows diff --git a/src/testdir/test_termencoding.vim b/src/testdir/test_termencoding.vim index a45ff8479..86b7341a2 100644 --- a/src/testdir/test_termencoding.vim +++ b/src/testdir/test_termencoding.vim @@ -1,8 +1,6 @@ " Test for setting 'encoding' to something else than the terminal uses, then " setting 'termencoding' to make it work. -source check.vim - " This only works with "iconv". CheckFeature iconv diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index 7476b4995..7e088b209 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -2,13 +2,10 @@ " This is split in two, because it can take a lot of time. " See test_terminal2.vim and test_terminal3.vim for further tests. -source check.vim CheckFeature terminal -source shared.vim source screendump.vim source mouse.vim -source term_util.vim let s:python = PythonProg() let $PROMPT_COMMAND='' diff --git a/src/testdir/test_terminal2.vim b/src/testdir/test_terminal2.vim index 195d0baa6..996cd9818 100644 --- a/src/testdir/test_terminal2.vim +++ b/src/testdir/test_terminal2.vim @@ -2,13 +2,10 @@ " This is split in two, because it can take a lot of time. " See test_terminal.vim and test_terminal3.vim for further tests. -source check.vim CheckFeature terminal -source shared.vim source screendump.vim source mouse.vim -source term_util.vim let $PROMPT_COMMAND='' diff --git a/src/testdir/test_terminal3.vim b/src/testdir/test_terminal3.vim index 7a2ecdbc1..e86fdf09a 100644 --- a/src/testdir/test_terminal3.vim +++ b/src/testdir/test_terminal3.vim @@ -2,13 +2,10 @@ " This is split in two, because it can take a lot of time. " See test_terminal.vim and test_terminal2.vim for further tests. -source check.vim CheckFeature terminal -source shared.vim source screendump.vim source mouse.vim -source term_util.vim import './vim9.vim' as v9 diff --git a/src/testdir/test_terminal_fail.vim b/src/testdir/test_terminal_fail.vim index e430bfe43..0ee00a1dc 100644 --- a/src/testdir/test_terminal_fail.vim +++ b/src/testdir/test_terminal_fail.vim @@ -2,7 +2,6 @@ " leaks under valgrind. That is because when fork/exec fails memory is not " freed. Since the process exits right away it's not a real leak. -source check.vim CheckFeature terminal source shared.vim diff --git a/src/testdir/test_textformat.vim b/src/testdir/test_textformat.vim index e31ea2205..f4dedfacb 100644 --- a/src/testdir/test_textformat.vim +++ b/src/testdir/test_textformat.vim @@ -1,7 +1,5 @@ " Tests for the various 'formatoptions' settings -source check.vim - func Test_text_format() enew! diff --git a/src/testdir/test_textobjects.vim b/src/testdir/test_textobjects.vim index 2622b06a4..320cd169b 100644 --- a/src/testdir/test_textobjects.vim +++ b/src/testdir/test_textobjects.vim @@ -1,7 +1,5 @@ " Test for textobjects -source check.vim - func CpoM(line, useM, expected) new diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim index bcf83cab8..856a526ae 100644 --- a/src/testdir/test_textprop.vim +++ b/src/testdir/test_textprop.vim @@ -1,7 +1,6 @@ " Tests for defining text property types and adding text properties to the " buffer. -source check.vim CheckFeature textprop source screendump.vim diff --git a/src/testdir/test_timers.vim b/src/testdir/test_timers.vim index d2f621c26..0f9fddbbb 100644 --- a/src/testdir/test_timers.vim +++ b/src/testdir/test_timers.vim @@ -1,11 +1,8 @@ " Test for timers -source check.vim CheckFeature timers source screendump.vim -source shared.vim -source term_util.vim func SetUp() " The tests here use timers, thus are sensitive to timing. diff --git a/src/testdir/test_true_false.vim b/src/testdir/test_true_false.vim index 2b27ba72a..03e02880e 100644 --- a/src/testdir/test_true_false.vim +++ b/src/testdir/test_true_false.vim @@ -1,7 +1,5 @@ " Test behavior of boolean-like values. -source check.vim - " Test what is explained at ":help TRUE" and ":help FALSE". func Test_if() if v:false diff --git a/src/testdir/test_trycatch.vim b/src/testdir/test_trycatch.vim index 31ac6f89f..1fde60756 100644 --- a/src/testdir/test_trycatch.vim +++ b/src/testdir/test_trycatch.vim @@ -1,8 +1,6 @@ " Test try-catch-finally exception handling " Most of this was formerly in test49. -source check.vim -source shared.vim import './vim9.vim' as v9 "------------------------------------------------------------------------------- diff --git a/src/testdir/test_undo.vim b/src/testdir/test_undo.vim index af6cefebe..b4506cb09 100644 --- a/src/testdir/test_undo.vim +++ b/src/testdir/test_undo.vim @@ -3,7 +3,6 @@ " undo-able pieces. Do that by setting 'undolevels'. " Also tests :earlier and :later. -source check.vim source screendump.vim func Test_undotree() diff --git a/src/testdir/test_uniq.vim b/src/testdir/test_uniq.vim index a60fd49b1..9029ea58f 100644 --- a/src/testdir/test_uniq.vim +++ b/src/testdir/test_uniq.vim @@ -1,7 +1,5 @@ " Tests for the ":uniq" command. -source check.vim - " Tests for the ":uniq" command. func Test_uniq_cmd() let tests = [ diff --git a/src/testdir/test_user_func.vim b/src/testdir/test_user_func.vim index b9f6a40e8..8a32afe32 100644 --- a/src/testdir/test_user_func.vim +++ b/src/testdir/test_user_func.vim @@ -3,8 +3,6 @@ " Also test that a builtin function cannot be replaced. " Also test for regression when calling arbitrary expression. -source check.vim -source shared.vim import './vim9.vim' as v9 func Table(title, ...) diff --git a/src/testdir/test_usercommands.vim b/src/testdir/test_usercommands.vim index d950308ee..e61a9cebf 100644 --- a/src/testdir/test_usercommands.vim +++ b/src/testdir/test_usercommands.vim @@ -2,7 +2,6 @@ import './vim9.vim' as v9 -source check.vim source screendump.vim " Test for <mods> in user defined commands diff --git a/src/testdir/test_utf8.vim b/src/testdir/test_utf8.vim index 61ea0d02b..9c2a7496e 100644 --- a/src/testdir/test_utf8.vim +++ b/src/testdir/test_utf8.vim @@ -1,7 +1,5 @@ " Tests for Unicode manipulations -source check.vim -source view_util.vim source screendump.vim " Visual block Insert adjusts for multi-byte char diff --git a/src/testdir/test_vartabs.vim b/src/testdir/test_vartabs.vim index bae00dd05..28b95ab69 100644 --- a/src/testdir/test_vartabs.vim +++ b/src/testdir/test_vartabs.vim @@ -1,10 +1,7 @@ " Test for variable tabstops -source check.vim CheckFeature vartabs -source view_util.vim - func s:compare_lines(expect, actual) call assert_equal(join(a:expect, " "), join(a:actual, " ")) endfunc diff --git a/src/testdir/test_version.vim b/src/testdir/test_version.vim index 958c126a4..40e5192b6 100644 --- a/src/testdir/test_version.vim +++ b/src/testdir/test_version.vim @@ -1,8 +1,5 @@ " Test :version Ex command -so check.vim -so shared.vim - func Test_version() " version should always return the same string. let v1 = execute('version') diff --git a/src/testdir/test_vim9_assign.vim b/src/testdir/test_vim9_assign.vim index 3b0838430..dde750b8b 100644 --- a/src/testdir/test_vim9_assign.vim +++ b/src/testdir/test_vim9_assign.vim @@ -1,8 +1,6 @@ " Test Vim9 assignments -source check.vim import './vim9.vim' as v9 -source term_util.vim let s:appendToMe = 'xxx' let s:addToMe = 111 diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 2ad4a8503..a653c7cb8 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -1,6 +1,5 @@ " Test using builtin functions in the Vim9 script language. -source check.vim source screendump.vim import './vim9.vim' as v9 diff --git a/src/testdir/test_vim9_class.vim b/src/testdir/test_vim9_class.vim index 3ba467b23..e08c40c76 100644 --- a/src/testdir/test_vim9_class.vim +++ b/src/testdir/test_vim9_class.vim @@ -1,6 +1,5 @@ " Test Vim9 classes -source check.vim import './vim9.vim' as v9 def Test_class_basic() diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index d38e1c896..0d525b481 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -1,9 +1,6 @@ " Test commands that are not compiled in a :def function -source check.vim import './vim9.vim' as v9 -source term_util.vim -source view_util.vim def Test_vim9cmd() var lines =<< trim END diff --git a/src/testdir/test_vim9_disassemble.vim b/src/testdir/test_vim9_disassemble.vim index e98ab75af..f1059fbb8 100644 --- a/src/testdir/test_vim9_disassemble.vim +++ b/src/testdir/test_vim9_disassemble.vim @@ -1,6 +1,5 @@ " Test the :disassemble command, and compilation as a side effect -source check.vim import './vim9.vim' as v9 func s:NotCompiled() diff --git a/src/testdir/test_vim9_enum.vim b/src/testdir/test_vim9_enum.vim index de26259d4..0ce7dad43 100644 --- a/src/testdir/test_vim9_enum.vim +++ b/src/testdir/test_vim9_enum.vim @@ -1,6 +1,5 @@ " Test Vim9 enums -source check.vim import './vim9.vim' as v9 " Test for parsing an enum definition diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim index b0a623aad..22d66810f 100644 --- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -1,6 +1,5 @@ " Tests for Vim9 script expressions -source check.vim import './vim9.vim' as v9 let g:cond = v:false diff --git a/src/testdir/test_vim9_fails.vim b/src/testdir/test_vim9_fails.vim index 9d4337023..62d6f97ba 100644 --- a/src/testdir/test_vim9_fails.vim +++ b/src/testdir/test_vim9_fails.vim @@ -1,8 +1,6 @@ " Test for Vim9 script with failures, causing memory leaks to be reported. " The leaks happen after a fork() and can be ignored. -source check.vim - def Test_assignment() if !has('channel') CheckFeature channel diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim index 1d5de42ff..42b8b4f2b 100644 --- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -1,8 +1,5 @@ " Test various aspects of the Vim9 script language. -source check.vim -source term_util.vim -source view_util.vim import './vim9.vim' as v9 source screendump.vim diff --git a/src/testdir/test_vim9_import.vim b/src/testdir/test_vim9_import.vim index 1c8136a0d..0eeaa7f43 100644 --- a/src/testdir/test_vim9_import.vim +++ b/src/testdir/test_vim9_import.vim @@ -1,8 +1,6 @@ " Test import/export of the Vim9 script language. " Also the autoload mechanism. -source check.vim -source term_util.vim import './vim9.vim' as v9 let s:export_script_lines =<< trim END diff --git a/src/testdir/test_vim9_python3.vim b/src/testdir/test_vim9_python3.vim index 697b36803..9817dd860 100644 --- a/src/testdir/test_vim9_python3.vim +++ b/src/testdir/test_vim9_python3.vim @@ -1,5 +1,4 @@ -source check.vim import './vim9.vim' as v9 CheckFeature python3 diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index d0bedf2a6..52d64c689 100644 --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -1,10 +1,7 @@ " Test various aspects of the Vim9 script language. -source check.vim -source term_util.vim import './vim9.vim' as v9 source screendump.vim -source shared.vim def Test_vim9script_feature() # example from the help, here the feature is always present diff --git a/src/testdir/test_vim9_typealias.vim b/src/testdir/test_vim9_typealias.vim index 6cc0470c2..9d7bd8927 100644 --- a/src/testdir/test_vim9_typealias.vim +++ b/src/testdir/test_vim9_typealias.vim @@ -1,6 +1,5 @@ " Test Vim9 type aliases -source check.vim import './vim9.vim' as v9 " Test for :type command to create type aliases diff --git a/src/testdir/test_viminfo.vim b/src/testdir/test_viminfo.vim index 2bbca3e5d..e3767e9a2 100644 --- a/src/testdir/test_viminfo.vim +++ b/src/testdir/test_viminfo.vim @@ -1,9 +1,5 @@ " Test for reading and writing .viminfo -source check.vim -source term_util.vim -source shared.vim - func Test_viminfo_read_and_write() " First clear 'history', so that "hislen" is zero. Then set it again, " simulating Vim starting up. diff --git a/src/testdir/test_vimscript.vim b/src/testdir/test_vimscript.vim index 16dd70c9d..e1000fbee 100644 --- a/src/testdir/test_vimscript.vim +++ b/src/testdir/test_vimscript.vim @@ -2,8 +2,6 @@ " Most of this was formerly in test49.vim (developed by Servatius Brandt " <servatius.bra...@fujitsu-siemens.com>) -source check.vim -source shared.vim source script_util.vim "------------------------------------------------------------------------------- diff --git a/src/testdir/test_visual.vim b/src/testdir/test_visual.vim index 2665faa45..df9fe99e9 100644 --- a/src/testdir/test_visual.vim +++ b/src/testdir/test_visual.vim @@ -1,7 +1,5 @@ " Tests for various Visual modes. -source shared.vim -source check.vim source screendump.vim import './vim9.vim' as v9 diff --git a/src/testdir/test_wayland.vim b/src/testdir/test_wayland.vim index 5dd6065fe..e72a37fa6 100644 --- a/src/testdir/test_wayland.vim +++ b/src/testdir/test_wayland.vim @@ -1,5 +1,3 @@ -source check.vim -source shared.vim source window_manager.vim CheckFeature wayland diff --git a/src/testdir/test_winbar.vim b/src/testdir/test_winbar.vim index 954c3e07d..f6185f802 100644 --- a/src/testdir/test_winbar.vim +++ b/src/testdir/test_winbar.vim @@ -1,9 +1,7 @@ " Test WinBar -source check.vim CheckFeature menu -source shared.vim source screendump.vim func Test_add_remove_menu() diff --git a/src/testdir/test_window_cmd.vim b/src/testdir/test_window_cmd.vim index 4e02f0098..bc1aaa9fa 100644 --- a/src/testdir/test_window_cmd.vim +++ b/src/testdir/test_window_cmd.vim @@ -1,6 +1,5 @@ " Tests for window cmd (:wincmd, :split, :vsplit, :resize and etc...) -source check.vim source screendump.vim func Test_window_cmd_ls0_with_split() diff --git a/src/testdir/test_window_id.vim b/src/testdir/test_window_id.vim index 396a49b55..5401b5f37 100644 --- a/src/testdir/test_window_id.vim +++ b/src/testdir/test_window_id.vim @@ -1,7 +1,5 @@ " Test using the window ID. -source check.vim - func Test_win_getid() edit one let id1 = win_getid() diff --git a/src/testdir/test_windows_home.vim b/src/testdir/test_windows_home.vim index ceed25a4d..4bacd3aab 100644 --- a/src/testdir/test_windows_home.vim +++ b/src/testdir/test_windows_home.vim @@ -1,6 +1,5 @@ " Test for $HOME on Windows. -source check.vim CheckMSWindows let s:env = {} diff --git a/src/testdir/test_winfixbuf.vim b/src/testdir/test_winfixbuf.vim index 2d4eaf675..a553799d3 100644 --- a/src/testdir/test_winfixbuf.vim +++ b/src/testdir/test_winfixbuf.vim @@ -1,8 +1,5 @@ " Test 'winfixbuf' -source check.vim -source shared.vim - " Find the number of open windows in the current tab func s:get_windows_count() return tabpagewinnr(tabpagenr(), '$') diff --git a/src/testdir/test_writefile.vim b/src/testdir/test_writefile.vim index 600c36d9b..51c55d2c7 100644 --- a/src/testdir/test_writefile.vim +++ b/src/testdir/test_writefile.vim @@ -1,8 +1,5 @@ " Tests for the writefile() function and some :write commands. -source check.vim -source term_util.vim - func Test_writefile() let f = tempname() call writefile(["over", "written"], f, "bD") diff --git a/src/testdir/test_xdg.vim b/src/testdir/test_xdg.vim index b7abd04e6..218714de3 100644 --- a/src/testdir/test_xdg.vim +++ b/src/testdir/test_xdg.vim @@ -1,8 +1,5 @@ " Tests for the XDG feature -source check.vim -source shared.vim - func s:get_rcs() let rcs = { \ 'file1': { 'path': '~/.vimrc', 'dir': expand('~/.vim/') }, diff --git a/src/testdir/test_xxd.vim b/src/testdir/test_xxd.vim index 7c3011f75..b2ef4e5ca 100644 --- a/src/testdir/test_xxd.vim +++ b/src/testdir/test_xxd.vim @@ -1,6 +1,5 @@ " Test for the xxd command -source check.vim source screendump.vim if empty($XXD) && executable('..\xxd\xxd.exe') diff --git a/src/testdir/window_manager.vim b/src/testdir/window_manager.vim index 36fe34058..7a3c0c0d0 100644 --- a/src/testdir/window_manager.vim +++ b/src/testdir/window_manager.vim @@ -1,6 +1,3 @@ -source check.vim -source shared.vim - CheckFeature job CheckUnix diff --git a/src/version.c b/src/version.c index 0ae79834a..470104c1d 100644 --- a/src/version.c +++ b/src/version.c @@ -719,6 +719,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1524, /**/ 1523, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1uYqpy-009Awv-Oe%40256bit.org.