1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-04-04 17:07:00 +02:00
vim/src/testdir
zeertzjq 6eda269600
patch 9.1.0835: :setglobal doesn't work properly for 'ffu' and 'tsrfu'
Problem:  :setglobal doesn't work properly for 'ffu' and 'tsrfu' when
          the local value is set (after v9.1.0831)
Solution: Check os_flags instead of buffer option variable (zeertzjq).

closes: 

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-11-03 09:23:33 +01:00
..
crash patch 9.1.0701: crash with NFA regex engine when searching for composing chars 2024-08-28 23:17:52 +02:00
dumps patch 9.1.0830: using wrong highlight group for spaces for popupmenu 2024-11-02 16:45:01 +01:00
python2
python3
python_after
python_before
pythonx
pyxfile
ru_RU/LC_MESSAGES patch 9.1.0509: not possible to translate Vim script messages 2024-06-20 23:41:59 +02:00
samples patch 9.1.0834: tests: 2html test fails 2024-11-03 09:19:14 +01:00
sautest/autoload
testluaplugin/lua/testluaplugin
amiga.vim
check.vim patch 9.1.0064: No Wayland support 2024-01-29 20:54:28 +01:00
color_ramp.vim
commondumps.vim patch 9.1.0807: tests: having 'nolist' in modelines isn't always desired 2024-10-22 23:11:27 +02:00
dos.vim patch 9.1.0794: tests: tests may fail on Windows environment 2024-10-20 11:06:00 +02:00
dotest.in
gen_opt_test.vim patch 9.1.0813: no error handling with setglobal and number types 2024-10-23 21:42:41 +02:00
gui_init.vim
gui_preinit.vim
keycode_check.json patch 9.0.0955: libvterm does not support the XTQMODKEYS request 2022-11-27 11:31:23 +00:00
keycode_check.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
lsan-suppress.txt
Make_all.mak patch 9.1.0797: testing of options can be further improved 2024-10-21 22:20:51 +02:00
Make_amiga.mak
Make_dos.mak patch 9.0.0421: MS-Windows makefiles are inconsistently named 2022-09-09 10:52:47 +01:00
Make_ming.mak patch 9.1.0797: testing of options can be further improved 2024-10-21 22:20:51 +02:00
Make_mvc.mak patch 9.1.0797: testing of options can be further improved 2024-10-21 22:20:51 +02:00
Make_vms.mms
Makefile patch 9.1.0816: tests: not clear what tests cause asan failures 2024-10-27 21:15:50 +01:00
mouse.vim patch 9.0.1084: code handling low level MS-Windows events cannot be tested 2022-12-20 20:01:58 +00:00
popupbounce.vim
README.txt patch 9.1.0681: tests: Analyzing failed screendumps is hard 2024-08-19 21:33:26 +02:00
runtest.vim patch 9.1.0833: CI: recent ASAN changes do not work for indent tests 2024-11-03 09:15:35 +01:00
screendump.vim patch 9.1.0820: tests: Mac OS tests are too flaky 2024-10-28 21:56:50 +01:00
script_util.vim runtime(misc): Use consistent "Vim script" spelling 2024-10-13 19:16:42 +02:00
setup.vim patch 9.1.0721: tests: test_mksession does not consider XDG_CONFIG_HOME 2024-09-08 20:00:38 +02:00
setup_gui.vim
shared.vim patch 9.1.0827: CI: tests can be improved 2024-11-02 15:51:14 +01:00
silent.wav
summarize.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
term_util.vim patch 9.1.0794: tests: tests may fail on Windows environment 2024-10-20 11:06:00 +02:00
test10.in patch 9.0.0637: syntax of commands in Vim9 script depends on +eval feature 2022-10-02 12:59:00 +01:00
test10.ok patch 9.0.0637: syntax of commands in Vim9 script depends on +eval feature 2022-10-02 12:59:00 +01:00
test20.in
test20.ok
test21.in
test21.ok
test22.in
test22.ok
test23.in
test23.ok
test24.in
test24.ok
test25.in
test25.ok
test26.in
test26.ok
test27.in
test27.ok
test28.in patch 9.1.0546: vim-tiny fails on CTRL-X/CTRL-A 2024-07-08 21:12:55 +02:00
test28.ok patch 9.1.0546: vim-tiny fails on CTRL-X/CTRL-A 2024-07-08 21:12:55 +02:00
test77a.com
test77a.in
test77a.ok
test_alot.vim patch 9.0.0892: may redraw when not needed 2022-11-17 11:34:38 +00:00
test_alot_latin.vim
test_alot_utf8.vim
test_arabic.vim patch 9.0.2092: tests: failure in test_arabic 2023-11-05 19:18:52 +01:00
test_arglist.vim patch 9.1.0678: [security]: use-after-free in alist_add() 2024-08-15 22:15:28 +02:00
test_assert.vim patch 9.1.0666: assert_equal() doesn't show multibyte string correctly 2024-08-09 19:52:10 +02:00
test_autochdir.vim patch 9.0.0411: only created files can be cleaned up with one call 2022-09-07 21:30:44 +01:00
test_autocmd.vim patch 9.1.0794: tests: tests may fail on Windows environment 2024-10-20 11:06:00 +02:00
test_autoload.vim patch 9.1.0419: eval.c not sufficiently tested 2024-05-19 09:06:50 +02:00
test_backspace_opt.vim patch 9.0.1379: functions for handling options are not ordered 2023-03-04 19:57:32 +00:00
test_backup.vim patch 9.0.0391: using separate delete() call instead of writefile() 'D' flag 2022-09-05 21:40:44 +01:00
test_balloon.vim patch 9.1.0491: Cmdline pum doesn't work properly with 'rightleft' 2024-06-15 15:37:11 +02:00
test_balloon_gui.vim
test_behave.vim
test_bench_regexp.vim
test_blob.vim patch 9.1.0415: Some functions are not tested 2024-05-17 18:20:43 +02:00
test_blockedit.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
test_breakindent.vim patch 9.1.0720: Wrong breakindentopt=list:-1 with multibyte or TABs 2024-09-07 11:23:54 +02:00
test_buffer.vim patch 9.1.0557: moving in the buffer list doesn't work as documented 2024-07-10 20:20:48 +02:00
test_bufline.vim patch 9.0.0961: using deletebufline() may jump to another window 2022-11-27 19:45:49 +00:00
test_bufwintabinfo.vim
test_cd.vim patch 9.1.0568: Cannot expand paths from 'cdpath' setting 2024-07-11 22:45:42 +02:00
test_cdo.vim
test_changedtick.vim
test_changelist.vim patch 9.0.0418: manually deleting temp test files 2022-09-08 16:39:22 +01:00
test_channel.py patch 9.0.1165: tests using IPv6 sometimes fail 2023-01-09 16:25:59 +00:00
test_channel.vim patch 9.1.0820: tests: Mac OS tests are too flaky 2024-10-28 21:56:50 +01:00
test_channel_6.py
test_channel_lsp.py patch 9.0.1924: LSP server message still wrongly handled (after 9.0.1922) 2023-09-21 16:36:28 +02:00
test_channel_pipe.py
test_channel_unix.py
test_channel_write.py
test_charsearch.vim patch 9.0.1555: setcharsearch() does not clear last searched char properly 2023-05-14 17:39:18 +01:00
test_charsearch_utf8.vim patch 9.0.1555: setcharsearch() does not clear last searched char properly 2023-05-14 17:39:18 +01:00
test_checkpath.vim patch 9.0.0418: manually deleting temp test files 2022-09-08 16:39:22 +01:00
test_cindent.vim patch 9.0.1426: indent wrong after "export namespace" in C++ 2023-03-24 19:25:06 +00:00
test_cjk_linebreak.vim
test_clientserver.vim patch 9.1.0064: No Wayland support 2024-01-29 20:54:28 +01:00
test_close_count.vim
test_cmd_lists.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
test_cmdline.vim runtime(defaults): Detect putty terminal and switch to dark background 2024-10-27 21:36:09 +01:00
test_cmdmods.vim patch 9.1.0748: :keep* commmands are sometimes misidentified as :k 2024-09-29 17:17:41 +02:00
test_cmdwin.vim patch 9.1.0049: Make "[Command Line]" a special buffer name 2024-01-23 22:37:39 +01:00
test_codestyle.vim patch 9.1.0606: tests: generated files may cause failure in test_codestyle 2024-07-20 11:55:13 +02:00
test_command_count.vim
test_comments.vim patch 9.1.0153: Text properties corrupted with fo+=aw and backspace 2024-03-06 20:54:22 +01:00
test_comparators.vim
test_compiler.vim patch 9.1.0326: filetype: some requirements files are not recognized 2024-04-14 20:43:27 +02:00
test_conceal.vim patch 9.1.0232: Conceal test fails when rightleft feature is disabled 2024-03-31 18:43:51 +02:00
test_const.vim
test_cpoptions.vim patch 9.1.0589: vi: d{motion} and cw work differently than expected 2024-07-15 20:51:11 +02:00
test_crash.vim patch 9.1.0703: crash with 2byte encoding and glob2regpat() 2024-08-29 22:15:03 +02:00
test_crypt.vim patch 9.0.1968: cmdline completion should consider key option 2023-10-01 09:19:18 +02:00
test_cscope.vim patch 9.0.0584: cscope test with wrong executable name fails 2022-09-25 17:03:26 +01:00
test_cursor_func.vim patch 9.1.0759: screenpos() may return invalid position 2024-10-05 17:30:22 +02:00
test_cursorline.vim patch 9.1.0730: Crash with cursor-screenline and narrow window 2024-09-14 10:40:29 +02:00
test_curswant.vim
test_debugger.vim patch 9.0.1570: some tests are slow 2023-05-19 21:41:02 +01:00
test_delete.vim patch 9.0.2134: ml_get error when scrolling 2023-11-27 23:25:03 +01:00
test_diffmode.vim patch 9.1.0822: topline might be changed in diff mode unexpectedly 2024-10-29 20:29:04 +01:00
test_digraph.vim patch 9.1.0332: tests: some assert_equal() calls have wrong order of args 2024-04-15 19:01:04 +02:00
test_display.vim patch 9.1.0039: too vague errors for 'listchars'/'fillchars' 2024-01-17 21:07:08 +01:00
test_edit.vim patch 9.1.0415: Some functions are not tested 2024-05-17 18:20:43 +02:00
test_environ.vim patch 9.0.1297: wrong value for $LC_CTYPE makes the environ test fail 2023-02-10 20:49:08 +00:00
test_erasebackword.vim
test_escaped_glob.vim
test_eval_stuff.vim patch 9.1.0665: Locked variable can be changed in a :for loop 2024-08-08 21:05:57 +02:00
test_ex_equal.vim
test_ex_mode.vim patch 9.1.0713: Newline causes E749 in Ex mode 2024-09-03 22:58:30 +02:00
test_ex_undo.vim
test_ex_z.vim
test_excmd.vim patch 9.1.0579: Ex command is still executed after giving E1247 2024-07-13 19:04:10 +02:00
test_exec_while_if.vim
test_execute_func.vim patch 9.1.0169: current window number returned by tabpagewinnr may be outdated 2024-03-12 20:42:25 +01:00
test_exists.vim patch 9.1.0748: :keep* commmands are sometimes misidentified as :k 2024-09-29 17:17:41 +02:00
test_exists_autocmd.vim
test_exit.vim patch 9.0.1538: :wqall does not trigger ExitPre 2023-05-10 16:53:27 +01:00
test_expand.vim patch 9.1.0161: expand() removes slash after env variable that ends with colon 2024-03-09 17:44:46 +01:00
test_expand_dllpath.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
test_expand_func.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
test_expr.vim runtime(misc): Use consistent "Vim script" spelling 2024-10-13 19:16:42 +02:00
test_expr_utf8.vim
test_file_perm.vim patch 9.0.0611: tests delete files with a separate delete() call 2022-09-27 19:34:35 +01:00
test_file_size.vim
test_filechanged.vim patch 9.1.0268: Two tests in test_filechanged.vim are slow 2024-04-05 20:05:11 +02:00
test_filecopy.vim patch 9.1.0465: missing filecopy() function 2024-06-03 23:01:40 +02:00
test_fileformat.vim patch 9.0.0904: various comment and indent flaws 2022-11-18 22:14:09 +00:00
test_filetype.vim patch 9.1.0826: filetype: sway files are not recognized 2024-11-02 15:44:43 +01:00
test_filter_cmd.vim
test_filter_map.vim patch 9.1.0027: Vim is missing a foreach() func 2024-01-13 11:47:33 +01:00
test_find_complete.vim patch 9.0.0611: tests delete files with a separate delete() call 2022-09-27 19:34:35 +01:00
test_findfile.vim patch 9.1.0835: :setglobal doesn't work properly for 'ffu' and 'tsrfu' 2024-11-03 09:23:33 +01:00
test_fixeol.vim patch 9.0.0826: if 'endofline' is set CTRL-Z may be written in a wrong place 2022-11-01 20:36:19 +00:00
test_flatten.vim
test_float_func.vim patch 9.0.0491: no good reason to build without the float feature 2022-09-17 21:08:33 +01:00
test_fnameescape.vim
test_fnamemodify.vim patch 9.1.0569: fnamemodify() treats ".." and "../" differently 2024-07-12 07:29:14 +02:00
test_fold.vim patch 9.1.0672: marker folds may get corrupted on undo 2024-08-11 20:12:41 +02:00
test_format.vim patch 9.1.0181: no overflow check for string formatting 2024-03-14 18:58:04 +01:00
test_function_lists.vim patch 9.0.0904: various comment and indent flaws 2022-11-18 22:14:09 +00:00
test_functions.vim patch 9.1.0794: tests: tests may fail on Windows environment 2024-10-20 11:06:00 +02:00
test_ga.vim
test_getcwd.vim patch 9.0.0323: using common name in tests leads to flaky tests 2022-08-29 22:31:20 +01:00
test_gettext.vim patch 9.1.0560: bindtextdomain() does not indicate an error 2024-07-11 21:36:21 +02:00
test_gettext_cp1251.vim patch 9.1.0560: bindtextdomain() does not indicate an error 2024-07-11 21:36:21 +02:00
test_gettext_make.vim patch 9.1.0712: tests: missing dependency of Test_gettext_makefile 2024-09-03 22:50:38 +02:00
test_gettext_makefile_in1.vim patch 9.1.0559: translation of vim scripts can be improved 2024-07-11 21:14:15 +02:00
test_gettext_makefile_in2.vim patch 9.1.0559: translation of vim scripts can be improved 2024-07-11 21:14:15 +02:00
test_gettext_makefile_in3.vim patch 9.1.0559: translation of vim scripts can be improved 2024-07-11 21:14:15 +02:00
test_gettext_makefile_in4.vim patch 9.1.0559: translation of vim scripts can be improved 2024-07-11 21:14:15 +02:00
test_gettext_utf8.vim patch 9.1.0560: bindtextdomain() does not indicate an error 2024-07-11 21:36:21 +02:00
test_getvar.vim patch 9.1.0799: tests: gettwinvar()/gettabwinvar() tests are not comprehensive 2024-10-22 21:23:31 +02:00
test_gf.vim patch 9.0.1546: some commands for opening a file don't use 'switchbuf' 2023-05-12 17:49:13 +01:00
test_glob2regpat.vim patch 9.0.0491: no good reason to build without the float feature 2022-09-17 21:08:33 +01:00
test_global.vim patch 9.1.0438: Wrong Ex command executed when :g uses '?' as delimiter 2024-05-24 07:37:36 +02:00
test_gn.vim
test_goto.vim patch 9.1.0667: Some other options reset curswant unnecessarily when set 2024-08-10 09:35:20 +02:00
test_gui.vim patch 9.1.0587: tests: Test_gui_lowlevel_keyevent is still flaky 2024-07-15 19:52:25 +02:00
test_gui_init.vim
test_hardcopy.vim
test_help.vim patch 9.0.0619: too many delete() calls in tests 2022-09-28 21:07:03 +01:00
test_help_tagjump.vim patch 9.0.0336: tests are flaky because of using a common file name 2022-08-30 21:46:08 +01:00
test_hide.vim
test_highlight.vim patch 9.1.0277: Cannot highlight the Command-line 2024-04-08 22:16:33 +02:00
test_history.vim patch 9.1.0439: Cannot filter the history 2024-05-24 07:39:34 +02:00
test_hlsearch.vim patch 9.0.1588: Incsearch not triggered when pasting clipboard register 2023-05-29 16:08:08 +01:00
test_iminsert.vim patch 9.0.0625: too many delete() calls in tests 2022-09-29 21:01:57 +01:00
test_increment.vim patch 9.1.0537: signed number detection for CTRL-X/A can be improved 2024-07-06 17:55:26 +02:00
test_increment_dbcs.vim
test_indent.vim patch 9.0.2122: [security]: prevent overflow in indenting 2023-11-22 22:18:35 +01:00
test_input.vim
test_ins_complete.vim patch 9.1.0835: :setglobal doesn't work properly for 'ffu' and 'tsrfu' 2024-11-03 09:23:33 +01:00
test_ins_complete_no_halt.vim
test_interrupt.vim
test_job_fails.vim
test_join.vim
test_json.vim patch 9.0.0491: no good reason to build without the float feature 2022-09-17 21:08:33 +01:00
test_jumplist.vim patch 9.1.0556: :bwipe doesn't remove file from jumplist of other tabpages 2024-07-10 19:36:36 +02:00
test_lambda.vim patch 9.0.0799: in compiled function ->() on next line not recognized 2022-10-19 18:04:49 +01:00
test_langmap.vim patch 9.0.0828: various typos 2022-11-02 13:30:51 +00:00
test_largefile.vim
test_let.vim patch 9.1.0335: String interpolation fails for List type 2024-04-15 19:19:52 +02:00
test_lineending.vim
test_lispindent.vim patch 9.0.0761: cannot use 'indentexpr' for Lisp indenting 2022-10-15 16:05:33 +01:00
test_listchars.vim patch 9.1.0039: too vague errors for 'listchars'/'fillchars' 2024-01-17 21:07:08 +01:00
test_listdict.vim patch 9.1.0747: various typos in repo found 2024-09-29 10:37:47 +02:00
test_listener.vim patch 9.0.1492: using uninitialized memory when argument is missing 2023-04-27 16:24:07 +01:00
test_listlbr.vim patch 9.1.0054: 'linebreak' may still apply to leading whitespace 2024-01-25 21:28:56 +01:00
test_listlbr_utf8.vim patch 9.1.0601: Wrong cursor position with 'breakindent' when wide char doesn't fit 2024-07-18 21:13:31 +02:00
test_lua.vim patch 9.1.0062: Internal error when :luado/perldo/pydo etc delete lines 2024-01-29 19:32:39 +01:00
test_makeencoding.py
test_makeencoding.vim
test_man.vim
test_map_functions.vim patch 9.1.0814: mapset() may remove unrelated mapping 2024-10-24 21:43:43 +02:00
test_mapping.vim patch 9.1.0767: A condition is always true in ex_getln.c 2024-10-08 21:04:19 +02:00
test_marks.vim patch 9.0.0530: using freed memory when autocmd changes mark 2022-09-21 13:07:22 +01:00
test_match.vim patch 9.1.0340: Problem: Error with matchaddpos() and empty list 2024-04-16 22:23:17 +02:00
test_matchadd_conceal.vim patch 9.0.0626: too many delete() calls in tests 2022-09-29 21:37:33 +01:00
test_matchadd_conceal_utf8.vim
test_matchfuzzy.vim patch 9.0.1499: using uninitialized memory with fuzzy matching 2023-04-29 21:38:04 +01:00
test_matchparen.vim patch 9.1.0694: matchparen is slow on a long line 2024-08-24 16:32:24 +02:00
test_memory_usage.vim patch 9.0.0626: too many delete() calls in tests 2022-09-29 21:37:33 +01:00
test_menu.vim patch 9.1.0525: Right release selects immediately when pum is truncated. 2024-07-04 17:26:37 +02:00
test_messages.vim patch 9.1.0146: v:echospace wrong with invalid value of 'showcmdloc' 2024-03-01 23:03:16 +01:00
test_method.vim patch 9.1.0415: Some functions are not tested 2024-05-17 18:20:43 +02:00
test_mksession.vim patch 9.1.0721: tests: test_mksession does not consider XDG_CONFIG_HOME 2024-09-08 20:00:38 +02:00
test_mksession_utf8.vim
test_modeless.vim patch 9.0.0954: cannot detect whether modifyOtherKeys is enabled 2022-11-26 19:16:48 +00:00
test_modeline.vim patch 9.1.0831: 'findexpr' can't be used as lambad or Funcref 2024-11-02 18:43:42 +01:00
test_move.vim patch 9.0.1279: display shows lines scrolled down erroneously 2023-02-04 13:57:55 +00:00
test_mswin_event.vim patch 9.1.0057: MS-Windows: Key event test still fails 2024-01-25 22:28:37 +01:00
test_mzscheme.vim
test_nested_function.vim
test_netbeans.py patch 9.0.1165: tests using IPv6 sometimes fail 2023-01-09 16:25:59 +00:00
test_netbeans.vim patch 9.0.1165: tests using IPv6 sometimes fail 2023-01-09 16:25:59 +00:00
test_normal.vim patch 9.1.0747: various typos in repo found 2024-09-29 10:37:47 +02:00
test_number.vim patch 9.1.0083: Redrawing can be improved when deleting lines with 'number' 2024-02-08 11:37:40 +01:00
test_options.vim patch 9.1.0831: 'findexpr' can't be used as lambad or Funcref 2024-11-02 18:43:42 +01:00
test_options_all.vim patch 9.1.0797: testing of options can be further improved 2024-10-21 22:20:51 +02:00
test_packadd.vim patch 9.0.1734: :runtime completion fails for multiple args 2023-08-17 23:48:58 +02:00
test_partial.vim patch 9.1.0547: No way to get the arity of a Vim function 2024-07-09 18:31:12 +02:00
test_paste.vim patch 9.1.0573: ex: no implicit print for single addresses 2024-07-12 20:18:54 +02:00
test_perl.vim patch 9.1.0062: Internal error when :luado/perldo/pydo etc delete lines 2024-01-29 19:32:39 +01:00
test_plus_arg_edit.vim patch 9.0.0631: too many delete() calls in tests 2022-09-30 21:57:11 +01:00
test_popup.vim patch 9.1.0830: using wrong highlight group for spaces for popupmenu 2024-11-02 16:45:01 +01:00
test_popupwin.vim patch 9.1.0710: popup window may hide part of Command line 2024-09-03 18:20:13 +02:00
test_popupwin_textprop.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
test_preview.vim patch 9.0.0631: too many delete() calls in tests 2022-09-30 21:57:11 +01:00
test_profile.vim patch 9.0.1411: accuracy of profiling is not optimal 2023-03-16 21:43:15 +00:00
test_prompt_buffer.vim patch 9.1.0040: issue with prompt buffer and hidden buffer 2024-01-17 21:22:59 +01:00
test_put.vim patch 9.1.0577: Unnecessary checks for v:sizeoflong in test_put.vim 2024-07-13 18:59:47 +02:00
test_python2.vim patch 9.1.0062: Internal error when :luado/perldo/pydo etc delete lines 2024-01-29 19:32:39 +01:00
test_python3.vim patch 9.1.0784: there are several problems with python 3.13 2024-10-14 20:28:39 +02:00
test_pyx2.vim
test_pyx3.vim
test_quickfix.vim patch 9.1.0786: tests: quickfix update test does not test location list 2024-10-15 20:26:45 +02:00
test_quotestar.vim patch 9.1.0064: No Wayland support 2024-01-29 20:54:28 +01:00
test_random.vim patch 9.0.1017: test for srand() fails on MS-Windows 2022-12-06 09:05:25 +00:00
test_recover.vim patch 9.1.0220: Few typos in source and test files 2024-03-28 11:37:26 +01:00
test_regex_char_classes.vim
test_regexp_latin.vim patch 9.1.0220: Few typos in source and test files 2024-03-28 11:37:26 +01:00
test_regexp_utf8.vim patch 9.1.0645: regex: wrong match when searching multi-byte char case-insensitive 2024-07-30 20:39:18 +02:00
test_registers.vim patch 9.1.0365: Crash when typing many keys with D- modifier 2024-04-22 21:04:29 +02:00
test_reltime.vim patch 9.0.0491: no good reason to build without the float feature 2022-09-17 21:08:33 +01:00
test_remote.vim patch 9.1.0379: There are a few typos 2024-04-28 16:20:55 +02:00
test_rename.vim patch 9.0.0669: too many delete() calls in tests 2022-10-05 21:45:30 +01:00
test_restricted.vim patch 9.0.0669: too many delete() calls in tests 2022-10-05 21:45:30 +01:00
test_retab.vim
test_ruby.vim patch 9.1.0062: Internal error when :luado/perldo/pydo etc delete lines 2024-01-29 19:32:39 +01:00
test_scriptnames.vim patch 9.0.1431: getscriptinfo() loops even when specific SID is given 2023-03-30 21:50:37 +01:00
test_scroll_opt.vim patch 9.1.0753: Wrong display when typing in diff mode with 'smoothscroll' 2024-10-01 19:35:47 +02:00
test_scrollbind.vim patch 9.0.1309: scrolling two lines with even line count and 'scrolloff' set 2023-02-14 17:41:20 +00:00
test_search.vim patch 9.1.0692: Wrong patlen value in ex_substitute() 2024-08-24 11:33:39 +02:00
test_search_stat.vim patch 9.0.1518: search stats not always visible when searching backwards 2023-05-06 19:20:20 +01:00
test_searchpos.vim
test_selectmode.vim patch 9.1.0580: :lmap mapping for keypad key not applied when typed in Select mode 2024-07-13 19:06:44 +02:00
test_set.vim
test_sha256.vim
test_shell.vim patch 9.1.0451: No test for escaping '<' with shellescape() 2024-05-30 19:27:25 +02:00
test_shift.vim
test_short_sleep.py
test_shortpathname.vim patch 9.1.0474: CI: Test_ColonEight() fails on github runners 2024-06-10 21:06:55 +02:00
test_signals.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
test_signs.vim patch 9.1.0538: not possible to assign priority when defining a sign 2024-07-06 18:04:09 +02:00
test_sleep.vim patch 9.0.1411: accuracy of profiling is not optimal 2023-03-16 21:43:15 +00:00
test_smartindent.vim
test_sort.vim patch 9.0.1396: sort(list, 'N') does not work in Vim9 script context 2023-03-09 22:06:49 +00:00
test_sound.vim patch 9.1.0271: CI sound test aborts with undefined variable 2024-04-05 20:16:46 +02:00
test_source.vim patch 9.0.0719: too many delete() calls in tests 2022-10-10 22:39:42 +01:00
test_source_utf8.vim patch 9.0.0719: too many delete() calls in tests 2022-10-10 22:39:42 +01:00
test_spell.vim patch 9.1.0512: Mode message for spell completion doesn't match allowed keys 2024-06-21 07:55:07 +02:00
test_spell_utf8.vim patch 9.0.0719: too many delete() calls in tests 2022-10-10 22:39:42 +01:00
test_spellfile.vim patch 9.1.0783: 'spell' option setting has problems 2024-10-14 20:21:48 +02:00
test_spellrare.vim patch 9.1.0419: eval.c not sufficiently tested 2024-05-19 09:06:50 +02:00
test_startup.vim patch 9.1.0064: No Wayland support 2024-01-29 20:54:28 +01:00
test_startup_utf8.vim patch 9.0.0719: too many delete() calls in tests 2022-10-10 22:39:42 +01:00
test_stat.vim patch 9.0.0719: too many delete() calls in tests 2022-10-10 22:39:42 +01:00
test_statusline.vim patch 9.0.2095: statusline may look different than expected 2023-11-08 21:23:29 +01:00
test_substitute.vim patch 9.1.0677: :keepp does not retain the substitute pattern 2024-08-15 22:09:28 +02:00
test_suspend.vim patch 9.0.1022: suspend test fails on Mac OS when suspending Vim 2022-12-06 16:09:52 +00:00
test_swap.vim patch 9.1.0794: tests: tests may fail on Windows environment 2024-10-20 11:06:00 +02:00
test_syn_attr.vim
test_syntax.vim patch 9.1.0016: default diff highlighting is too noisy 2024-01-07 23:32:19 +01:00
test_system.vim patch 9.0.0719: too many delete() calls in tests 2022-10-10 22:39:42 +01:00
test_tab.vim
test_tabline.vim patch 9.0.1672: tabline highlight wrong after truncated double width label 2023-07-01 20:24:40 +01:00
test_tabpage.vim patch 9.1.0572: cannot specify tab page closing behaviour 2024-07-12 19:36:53 +02:00
test_tagcase.vim patch 9.0.0767: too many delete() calls in tests 2022-10-15 20:52:26 +01:00
test_tagfunc.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
test_tagjump.vim patch 9.1.0556: :bwipe doesn't remove file from jumplist of other tabpages 2024-07-10 19:36:36 +02:00
test_taglist.vim patch 9.1.0581: Various lines are indented inconsistently 2024-07-14 10:20:20 +02:00
test_tcl.vim patch 9.1.0062: Internal error when :luado/perldo/pydo etc delete lines 2024-01-29 19:32:39 +01:00
test_termcodes.vim patch 9.1.0788: <CSI>27;<mod>u is not decoded to literal Escape in kitty/foot 2024-10-16 17:28:38 +02:00
test_termdebug.vim patch 9.1.0817: termdebug: cannot evaluate expr in a popup 2024-10-27 21:51:14 +01:00
test_termencoding.vim patch 9.0.0767: too many delete() calls in tests 2022-10-15 20:52:26 +01:00
test_terminal.vim patch 9.1.0808: Terminal scrollback doesn't shrink when decreasing 'termwinscroll' 2024-10-22 23:17:45 +02:00
test_terminal2.vim patch 9.1.0794: tests: tests may fail on Windows environment 2024-10-20 11:06:00 +02:00
test_terminal3.vim patch 9.1.0787: cursor position changed when using hidden terminal 2024-10-15 20:38:57 +02:00
test_terminal_fail.vim
test_textformat.vim patch 9.1.0379: There are a few typos 2024-04-28 16:20:55 +02:00
test_textobjects.vim patch 9.1.0504: inner-tag textobject confused about ">" in attributes 2024-06-19 20:26:51 +02:00
test_textprop.vim patch 9.1.0815: "above" virtual text causes wrong 'colorcolumn' position 2024-10-27 19:24:53 +01:00
test_timers.vim patch 9.0.1592: not all timer tests are marked as flaky 2023-05-30 15:34:50 +01:00
test_tohtml.vim patch 9.1.0578: no tests for :Tohtml 2024-07-13 19:02:10 +02:00
test_true_false.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
test_trycatch.vim patch 9.0.1508: catch does not work when lines are joined with a newline 2023-05-05 17:22:35 +01:00
test_undo.vim patch 9.1.0157: Duplicate assignment in f_getregion() 2024-03-07 21:43:21 +01:00
test_unlet.vim
test_user_func.vim patch 9.1.0182: Can define function with invalid name inside 'formatexpr' 2024-03-16 09:39:06 +01:00
test_usercommands.vim patch 9.1.0685: too many strlen() calls in usercmd.c 2024-08-20 20:57:23 +02:00
test_utf8.vim patch 9.1.0719: Resetting cell widths can make 'listchars' or 'fillchars' invalid 2024-09-06 16:24:41 +02:00
test_utf8_comparisons.vim patch 9.1.0105: Style: typos found 2024-02-13 20:32:04 +01:00
test_vartabs.vim patch 9.1.0456: Left shift is incorrect with vartabstop and shiftwidth=0 2024-06-01 20:51:33 +02:00
test_version.vim
test_vim9_assign.vim patch 9.1.0415: Some functions are not tested 2024-05-17 18:20:43 +02:00
test_vim9_builtin.vim patch 9.1.0646: Vim9: imported function may not be found 2024-07-31 22:18:11 +02:00
test_vim9_class.vim patch 9.1.0675: Patch v9.1.0674 causes problems 2024-08-14 23:05:41 +02:00
test_vim9_cmd.vim patch 9.1.0688: Vim9: dereferences NULL pointer in check_type_is_value() 2024-08-22 21:25:18 +02:00
test_vim9_disassemble.vim patch 9.1.0523: Vim9: cannot downcast an object 2024-07-04 17:03:17 +02:00
test_vim9_enum.vim patch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignored 2024-04-27 11:48:26 +02:00
test_vim9_expr.vim patch 9.1.0419: eval.c not sufficiently tested 2024-05-19 09:06:50 +02:00
test_vim9_fails.vim patch 9.0.0557: valgrind reports possibly leaked memory 2022-09-23 16:11:37 +01:00
test_vim9_func.vim patch 9.1.0682: Vim9: Segfault with uninitialized funcref 2024-08-19 21:47:35 +02:00
test_vim9_import.vim patch 9.1.0831: 'findexpr' can't be used as lambad or Funcref 2024-11-02 18:43:42 +01:00
test_vim9_script.vim patch 9.1.0589: vi: d{motion} and cw work differently than expected 2024-07-15 20:51:11 +02:00
test_vim9_typealias.vim patch 9.1.0400: Vim9: confusing error message for unknown type 2024-05-09 09:15:02 +02:00
test_viminfo.vim patch 9.1.0420: :browse oldfiles prompts even with single entry 2024-05-19 09:11:09 +02:00
test_vimscript.vim patch 9.1.0529: silent! causes following try/catch to not work 2024-07-04 19:23:16 +02:00
test_virtualedit.vim patch 9.1.0388: cursor() and getregion() don't handle v:maxcol well 2024-05-02 13:06:24 +02:00
test_visual.vim patch 9.1.0477: block_editing errors out when using <enter> 2024-06-11 20:37:59 +02:00
test_winbar.vim patch 9.0.0828: various typos 2022-11-02 13:30:51 +00:00
test_winbuf_close.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
test_window_cmd.vim patch 9.1.0789: tests: ':resize + 5' has invalid space after '+' 2024-10-16 20:03:44 +02:00
test_window_id.vim
test_windows_home.vim patch 9.1.0794: tests: tests may fail on Windows environment 2024-10-20 11:06:00 +02:00
test_winfixbuf.vim patch 9.1.0554: :bw leaves jumplist and tagstack data around 2024-07-09 20:03:24 +02:00
test_wnext.vim
test_wordcount.vim
test_writefile.vim patch 9.0.1967: xattr errors not translated 2023-10-01 09:07:14 +02:00
test_xdg.vim patch 9.1.0718: hard to know the users personal Vim Runtime Directory 2024-09-05 17:46:19 +02:00
test_xxd.vim patch 9.1.0793: xxd: -e does add one extra space 2024-10-19 15:54:57 +02:00
test_zip_plugin.vim patch 9.1.0686: zip-plugin has problems with special characters 2024-08-20 22:41:52 +02:00
thread_util.py
unix.vim patch 9.0.1257: code style is not check in test scripts 2023-01-28 19:19:03 +00:00
view_util.vim patch 9.1.0611: ambiguous mappings not correctly resolved with modifyOtherKeys 2024-07-23 20:42:02 +02:00
viewdumps.vim patch 9.1.0807: tests: having 'nolist' in modelines isn't always desired 2024-10-22 23:11:27 +02:00
vim9.vim patch 9.1.0364: tests: test_vim9_builtin is a bit slow 2024-04-22 20:58:24 +02:00
vms.vim

This directory contains tests for various Vim features.
For testing an indent script see runtime/indent/testdir/README.txt.

If it makes sense, add a new test method to an already existing file.  You may
want to separate it from other tests with comment lines.

TO ADD A NEW STYLE TEST:

1) Create a test_<subject>.vim file.
2) Add test_<subject>.res to NEW_TESTS_RES in Make_all.mak in alphabetical
   order.
3) Also add an entry "test_<subject>" to NEW_TESTS in Make_all.mak.
4) Use make test_<subject> to run a single test.

At 2), instead of running the test separately, it can be included in
"test_alot".  Do this for quick tests without side effects.  The test runs a
bit faster, because Vim doesn't have to be started, one Vim instance runs many
tests.

At 4), to run a test in GUI, add "GUI_FLAG=-g" to the make command.


What you can use (see test_assert.vim for an example):

- Call assert_equal(), assert_true(), assert_false(), etc.

- Use assert_fails() to check for expected errors.

- Use try/catch to avoid an exception aborts the test.

- Use test_alloc_fail() to have memory allocation fail.  This makes it possible
  to check memory allocation failures are handled gracefully.  You need to
  change the source code to add an ID to the allocation.  Add a new one to
  alloc_id_T, before aid_last.

- Use test_override() to make Vim behave differently, e.g.  if char_avail()
  must return FALSE for a while.  E.g. to trigger the CursorMovedI autocommand
  event. See test_cursor_func.vim for an example.

- If the bug that is being tested isn't fixed yet, you can throw an exception
  with "Skipped" so that it's clear this still needs work.  E.g.: throw
  "Skipped: Bug with <c-e> and popupmenu not fixed yet"

- The following environment variables are recognized and can be set to
  influence the behavior of the test suite (see runtest.vim for details)

  - $TEST_MAY_FAIL=Test_channel_one    - ignore those failing tests
  - $TEST_FILTER=Test_channel    - only run test that match this pattern
  - $TEST_SKIP_PAT=Test_channel  - skip tests that match this pattern
  - $TEST_NO_RETRY=yes           - do not try to re-run failing tests
  You can also set them in Vim:
    :let $TEST_MAY_FAIL = 'Test_channel_one'
    :let $TEST_FILTER = '_set_mode'
    :let $TEST_SKIP_PAT = 'Test_loop_forever'
    :let $TEST_NO_RETRY = 'yes'
  Use an empty string to revert, e.g.:
    :let $TEST_FILTER = ''

- See the start of runtest.vim for more help.


TO ADD A SCREEN DUMP TEST:

Mostly the same as writing a new style test.  Additionally, see help on
"terminal-dumptest".  Put the reference dump in "dumps/Test_func_name.dump".


OLD STYLE TESTS:

There are a few tests that are used when Vim was built without the +eval
feature.  These cannot use the "assert" functions, therefore they consist of a
.in file that contains Normal mode commands between STARTTEST and ENDTEST.
They modify the file and the result gets written in the test.out file.  This
is then compared with the .ok file.  If they are equal the test passed.  If
they differ the test failed.


RUNNING THE TESTS:

To run a single test from the src directory:

    $ make test_<name>

The below commands should be run from the src/testdir directory.

To run a single test:

    $ make test_<name>.res

The file 'messages' contains the messages generated by the test script.  If a
test fails, then the test.log file contains the error messages.  If all the
tests are successful, then this file will be an empty file.

- To run a single test function from a test script:

    $ ../vim -u NONE -S runtest.vim <test_file>.vim <function_name>

- To execute only specific test functions, add a second argument:

    $ ../vim -u NONE -S runtest.vim test_channel.vim open_delay

- To run all the tests:

    $ make

- To run the test on MS-Windows using the MSVC nmake:

    > nmake -f Make_mvc.mak

- To run the tests with GUI Vim:

    $ make GUI_FLAG=-g

    or

    $ make VIMPROG=../gvim

- To cleanup the temporary files after running the tests:

    $ make clean


VIEWING GENERATED SCREENDUMPS (local):

You may also wish to look at the whole batch of failed screendumps after
running "make".  Source the "viewdumps.vim" script for this task:

    $ ../vim -u NONE -S viewdumps.vim \
				[dumps/Test_xxd_*.dump ...]

By default, all screendumps found in the "failed" directory will be added to
the argument list and then the first one will be loaded.  Loaded screendumps
that bear filenames of screendumps found in the "dumps" directory will be
rendering the contents of any such pair of files and the difference between
them (:help term_dumpdiff()); otherwise, they will be rendering own contents
(:help term_dumpload()).  Remember to execute :edit when occasionally you see
raw file contents instead of rendered.

At any time, you can add, list, and abandon other screendumps:

    :$argedit dumps/Test_spell_*.dump
    :args
    :qall

The listing of argument commands can be found under :help buffer-list.


VIEWING GENERATED SCREENDUMPS (from a CI-uploaded artifact):

After you have downloaded an artifact archive containing failed screendumps
and extracted its files in a temporary directory, you need to set up a "dumps"
directory by creating a symlink:

    $ cd /path/to/fork
    $ ln -s $(pwd)/src/testdir/dumps /tmp/src/testdir/dumps

You can now examine the extracted screendumps:

    $ ./src/vim -u NONE -S src/testdir/viewdumps.vim \
				/tmp/src/testdir/failed/*.dump


VIEWING GENERATED SCREENDUMPS (submitted for a pull request):

First, you need to check out the topic branch with the proposed changes and
write down a difference list between the HEAD commit (index) and its parent
commit with respect to the changed "dumps" filenames:

    $ cd /path/to/fork
    $ git switch prs/1234
    $ git diff-index --relative=src/testdir/dumps/ \
				--name-only prs/1234~1 > /tmp/filelist

Then, you need to check out the master branch, change the current working
directory to reconcile relative filepaths written in the filenames list,
possibly create an empty "failed" directory, copy in this directory the old
"dumps" files, whose names are on the same list, and follow it by checking out
the topic branch:

    $ git switch master
    $ cd src/testdir/dumps
    $ test -d ../failed || mkdir ../failed
    $ cp -t ../failed $(cat /tmp/filelist)
    $ git switch prs/1234

Make note of any missing new screendumps.  Please remember about the
introduced INVERTED relation between "dumps" and "failed", i.e. the files to
be committed are in "dumps" already and their old versions are in "failed".
Therefore, you need to copy the missing new screendumps from "dumps" to
"failed":

    $ cp -t ../failed foo_10.dump foo_11.dump foo_12.dump

After you have changed the current working directory to its parent directory,
you can now examine the screendumps from the "failed" directory (note that new
screendumps will be shown with no difference between their versions):

    $ cd ..
    $ ../vim -u NONE -S viewdumps.vim