patch 9.1.1174: tests: Test_complete_cmdline() may fail Commit: https://github.com/vim/vim/commit/f7087cbec7ec1d32465c2460f2665725c8d3a06a Author: Jim Zhou <jimzhou...@gmail.com> Date: Wed Mar 5 20:25:11 2025 +0100
patch 9.1.1174: tests: Test_complete_cmdline() may fail Problem: tests: when the file 'TestCommand?Test' exists, 'Test_complete_cmdline()' will fail when writing the file. And there's no related cleaning operation for this kind of file before the test run. Solution: modify `write` to `write!` to override (Jim Zhou). closes: #16799 Signed-off-by: Jim Zhou <jimzhou...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim index a6859d569..1bef953d4 100644 --- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -1179,8 +1179,8 @@ func Test_complete_cmdline() call assert_equal('abcxyz(', getline(3)) com! -buffer TestCommand1 echo 'TestCommand1' com! -buffer TestCommand2 echo 'TestCommand2' - write TestCommand1Test - write TestCommand2Test + write! TestCommand1Test + write! TestCommand2Test " Test repeating <CTRL-X> <CTRL-V> and switching to another CTRL-X mode exe "normal oT\<C-X>\<C-V>\<C-X>\<C-V>\<C-X>\<C-F>\<Esc>" call assert_equal('TestCommand2Test', getline(4)) diff --git a/src/version.c b/src/version.c index 8b42a7909..a8c22669d 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1174, /**/ 1173, /**/ -- -- 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/E1tpufu-00AZub-UY%40256bit.org.