From: coyaSONG <66289470+coyaSONG@users.noreply.github.com> Date: Fri, 17 Jul 2026 14:13:53 +0000 (+0000) Subject: patch 9.2.0783: tests: personal spell files leak into later tests X-Git-Tag: v9.2.0783^0 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=f16e30e19d60b0e2dec2b32ba445cd081e2f670e;p=thirdparty%2Fvim.git 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 Signed-off-by: coyaSONG <66289470+coyaSONG@users.noreply.github.com> Signed-off-by: Christian Brabandt --- diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index b524cf60fc..bd8185a09c 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 4277e31e30..e3b6bdf836 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, /**/