]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(syntax-tests): Support "wait-free" test failure
authorAliaksei Budavei <0x000c70@gmail.com>
Sun, 16 Mar 2025 19:59:28 +0000 (20:59 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 16 Mar 2025 19:59:28 +0000 (20:59 +0100)
commit7ceca3eb004706d6406e42f9ef1931eb1298f1dc
tree64a8afe719d2f87a499492da6a6f2d2cc8af90ab
parent34954972c27244a4a1fb4eeeae2aa4e021efd100
runtime(syntax-tests): Support "wait-free" test failure

When certain changes guarantee failure for old syntax tests,
opt for faster failure by reducing the number of screendumps
made for each file "page" to be no greater than the assigned
value of a VIM_SYNTAX_TEST_WAIT_TIME environment variable.
(This variable will be ignored and more screendumps may be
made when Make is GNU Make and a parent Makefile is used.)

Barring regressions, and assuming that v9.1.1163~1 succeeds
in providing a correct synchronisation mechanism outside of
"VerifyScreenDump()", and assuming that "readfile()" always
obtains the latest contents written by "term_dumpwrite()" in
"VerifyScreenDump()"; making a single screendump of a file
"page" and following it with a single reading of the written
screendump file should be enough to decide whether to pass
or fail a syntax test.

In addition, re-enable self testing after v9.1.1183~2.

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