neovim/src/nvim/testdir/test_version.vim

13 lines
303 B
VimL
Raw Normal View History

vim-patch:8.2.0573: using :version twice leaks memory Problem: using :version twice leaks memory Solution: Only initialize variables once. (Dominique Pelle, closes vim/vim#5917) https://github.com/vim/vim/commit/278e83863b2c7329f6712b8809e4aa5e6a50e13f Cherry-pick test_alot.vim change from patch v8.2.0164 so that test_expr.vim and test_version.vim do not conflict. Cherry-pick modeline from patch v8.2.1432. N/A patches for version.c: vim-patch:8.1.0103: long version string cannot be translated Problem: Long version string cannot be translated. Solution: Build the string in init_longVersion(). https://github.com/vim/vim/commit/35fb6fbf727c72eb5987a1556bbba26dca14cc48 vim-patch:8.1.0975: using STRNCPY() wrongly. Warning for uninitialized variable Problem: Using STRNCPY() wrongly. Warning for uninitialized variable. Solution: Use mch_memmove(). Initialize variable. (Yasuhiro Matsumoto, closes vim/vim#3979) https://github.com/vim/vim/commit/c666388367282c3c7d1d7af24883cfa0d40b046e vim-patch:8.1.1403: cannot build without the timer feature Problem: Cannot build without the timer feature. Solution: Add #ifdef. https://github.com/vim/vim/commit/35d5af6c0b618aef9ca87b05b2e184934e47d916 vim-patch:8.1.1569: cannot build with signs but without diff feature Problem: Cannot build with signs but without diff feature. Solution: Move #ifdef. (Tom Ryder) https://github.com/vim/vim/commit/bf8c3adef21c24a9bf2c1a93042a096ea8d8b2e1 vim-patch:8.1.1856: popup preview test fails sometimes Problem: popup preview test fails sometimes. (Christian Brabandt) Solution: Clear the command line. https://github.com/vim/vim/commit/78d629a38548115a68298081d39d6d90708af561 vim-patch:8.1.1983: compiler nags for uninitialized variable and unused function Problem: Compiler nags for uninitialized variable and unused function. Solution: Add unnecessary initialization. Move function inside #ifdef. https://github.com/vim/vim/commit/ea781459b9617aa47335061fcc78403495260315 vim-patch:8.1.2014: terminal altscreen test fails sometimes Problem: Terminal altscreen test fails sometimes. Solution: Use WaitFor(). https://github.com/vim/vim/commit/b9c79cf5cc876ba4d46d938ad4a15800dbe45e64 vim-patch:8.1.2365: missing tests for recent popupwin changes Problem: Missing tests for recent popupwin changes. Solution: Add test cases. https://github.com/vim/vim/commit/20ebbeac461ffc2a5e5dbfbb0ba380b8854615bd vim-patch:8.1.2406: leaking memory in test_paste and test_registers Problem: Leaking memory in test_paste and test_registers. Solution: Free the old title. Don't copy expr_line. https://github.com/vim/vim/commit/6b649ac4fd0cbf88c5a05d82ad151d0ce980916a vim-patch:8.2.0616: build error when disabling the diff feature Problem: Build error when disabling the diff feature. Solution: Move parenthesis outside of #ifdef. (Tom Ryder) https://github.com/vim/vim/commit/e770598f31ad88fc98e40ead4b228ebc04afaa5d vim-patch:8.2.1020: popupwin test fails in the GUI Problem: Popupwin test fails in the GUI. Solution: Send GUI byte sequence for <C-S-a>. https://github.com/vim/vim/commit/b326edf5b30813b2ccdee3ac07ee6495ca5187ff vim-patch:8.2.1036: popupwin test fails sometimes Problem: Popupwin test fails sometimes. Solution: Use WaitForAssert() instead of a sleep. https://github.com/vim/vim/commit/373c65104e0991724cb57910dfb3e5c276e2d7e7 vim-patch:8.2.1038: popupwin test fails Problem: Popupwin test fails. Solution: Fix WaitForAssert() argument. https://github.com/vim/vim/commit/b2b218d89b3a6f450e65afd5e59ac234a5fa1eb7 vim-patch:8.2.1743: cannot build without the eval feature Problem: Cannot build without the eval feature. Solution: Move shorten_dir outside of #ifdef. https://github.com/vim/vim/commit/273af497cac345897cf6369baa87a070876a5815 vim-patch:8.2.1843: Netbeans: with huge buffer number memory allocation may fail Problem: Netbeans: with huge buffer number memory allocation may fail. Solution: Check for size overflow. https://github.com/vim/vim/commit/b9616af23f31fc18721a92643c21f42b69854efe
2020-10-12 19:24:26 -07:00
" Test :version Ex command
func Test_version()
" version should always return the same string.
let v1 = execute('version')
let v2 = execute('version')
call assert_equal(v1, v2)
call assert_match("^\n\nNVIM v[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+.*", v1)
endfunc
" vim: shiftwidth=2 sts=2 expandtab