patch 9.2.0783: tests: personal spell files leak into later tests
Commit:
https://github.com/vim/vim/commit/f16e30e19d60b0e2dec2b32ba445cd081e2f670e
Author: coyaSONG <
66289470...@users.noreply.github.com>
Date: Fri Jul 17 14:13:53 2026 +0000
patch 9.2.0783: tests: personal spell files leak into later tests
Problem: Test_spelldump_prefixtree_overflow() resets 'runtimepath' to
defaults, which can expose personal spell files to later tests
(Jun-ichi Takimoto, after v9.2.0662)
Solution: Save and restore the test runner's 'runtimepath' value (coyaSONG).
fixes: #20765
closes: #20766
Co-Authored-By: OpenAI Codex <
nor...@openai.com>
Signed-off-by: coyaSONG <
66289470...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim
index b524cf60f..bd8185a09 100644
--- a/src/testdir/test_spell.vim
+++ b/src/testdir/test_spell.vim
@@ -1591,6 +1591,7 @@ endfunc
" tree_count_words() fix (9.2.0653).
func Test_spelldump_prefixtree_overflow()
CheckUnix
+ let save_rtp = &runtimepath
call mkdir('Xrtp/spell', 'pR')
" VIMspell + v50, SN_PREFCOND(prefixcnt=1), SN_END,
" LWORDTREE word "a" with affixID=1 (so dump_prefixes runs),
@@ -1606,7 +1607,8 @@ func Test_spelldump_prefixtree_overflow()
spelldump
call assert_true(line('$') > 1)
- set spell& spelllang& runtimepath&
+ set spell& spelllang&
+ let &runtimepath = save_rtp
bwipe!
bwipe!
endfunc
diff --git a/src/version.c b/src/version.c
index 4277e31e3..e3b6bdf83 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 783,
/**/
782,
/**/