]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(syntax-tests): Improve parts of "runtest.vim"
authorAliaksei Budavei <0x000c70@gmail.com>
Sat, 8 Mar 2025 15:58:17 +0000 (16:58 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 8 Mar 2025 15:58:17 +0000 (16:58 +0100)
commitf63c3467b148ca94826a5c3dd6c1c1102f146039
treec40c04256a44256ffd3cacb5c67b929bc8ee5ac9
parentdd42b05f8a37df03a9b77a16a47c08ab33af2b1f
runtime(syntax-tests): Improve parts of "runtest.vim"

* Accommodate the calling of "EraseLineAndReturnCarriage()"
  to not interfere with the "skipped" and "failed" reports.

* Create the "failed" directory, if unavailable, without
  relying on "VerifyScreenDump()" to do it so that reporting
  with "Xtestscript#s:AssertCursorForwardProgress()" can be
  uniformly attempted.

* Make an only list copy of the "Xtestscript" contents and
  share it with every syntax test.

* Narrow the scope of the "filetype" and "failed_root" local
  variables.

closes: #16789

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/testdir/runtest.vim