From feb3aed9facefaf84eb2da169d41ffcb4e05e269 Mon Sep 17 00:00:00 2001 From: ichizok Date: Wed, 19 May 2021 15:11:20 +0900 Subject: [PATCH] Workaround: Skip Test_writedelay on GUI test Since Vim v8.2.2837, Test_VIM_POSIX is added, Test_writedelay fails sometimes. Because, 'writedelay' makes no effect while its GUI window focus is lost, and Test_VIM_POSIX is executed prior to Test_writedelay and opens the own new GUI window so the main window loses focus once. --- src/testdir/test_options.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index 4268642d6f..cc926d073c 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -779,6 +779,11 @@ func Test_local_scrolloff() endfunc func Test_writedelay() + " Workaround for MacVim GUI: This test fails sometimes after Test_VIM_POSIX. + " Because, 'writedelay' makes no effect while its GUI window focus is lost, + " and Test_VIM_POSIX opens the own new GUI window so the main window loses + " focus once. + CheckNotGui CheckFunction reltimefloat new