patch 9.1.1511: tests: two edit tests change v:testing from 1 to 0
Commit:
https://github.com/vim/vim/commit/96076bf41e0163cd61ca738b352896d450ee3636
Author: zeertzjq <[email protected]>
Date: Sat Jul 5 15:39:56 2025 +0200
patch 9.1.1511: tests: two edit tests change v:testing from 1 to 0
Problem: tests: two edit tests change v:testing from 1 to 0.
Solution: Don't change v:testing in these two tests, since it's already
set to 1 in runtest.vim (zeertzjq).
closes: #17660
Signed-off-by: zeertzjq <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index f03fe4449..b1ffd1960 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -180,6 +180,7 @@ endif
" Prepare for calling test_garbagecollect_now().
+" Also avois some delays in Insert mode completion.
let v:testing = 1
" By default, copy each buffer line into allocated memory, so that valgrind can
diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim
index a212e8c5a..bde2cb0c8 100644
--- a/src/testdir/test_edit.vim
+++ b/src/testdir/test_edit.vim
@@ -709,12 +709,9 @@ func Test_edit_CTRL_K()
%d
call setline(1, 'A')
call cursor(1, 1)
- let v:testing = 1
try
call feedkeys("A\<c-x>\<c-k>\<esc>", 'tnix')
catch
- " error sleeps 2 seconds, when v:testing is not set
- let v:testing = 0
endtry
call test_override("char_avail", 1)
@@ -962,12 +959,9 @@ func Test_edit_CTRL_T()
%d
call setline(1, 'mad')
call cursor(1, 1)
- let v:testing = 1
try
call feedkeys("A\<c-x>\<c-t>\<esc>", 'tnix')
catch
- " error sleeps 2 seconds, when v:testing is not set
- let v:testing = 0
endtry
call assert_equal(['mad'], getline(1, '$'))
bw!
diff --git a/src/version.c b/src/version.c
index 4175c62e8..feedd9268 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 */
+/**/
+ 1511,
/**/
1510,
/**/
--
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uY3CX-004ndz-4W%40256bit.org.