diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-10-20 18:02:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-20 18:02:05 +0800 |
| commit | ce9a9b4700262fb50312720bfdffbebfc7d8ef7a (patch) | |
| tree | 95aafe7cd4205353ab5d555f731660cb231eb5e3 /test/old/testdir/test_autocmd.vim | |
| parent | 573fcb8b6641fe623a7064ff3ae320053f255e42 (diff) | |
| download | rneovim-ce9a9b4700262fb50312720bfdffbebfc7d8ef7a.tar.gz rneovim-ce9a9b4700262fb50312720bfdffbebfc7d8ef7a.tar.bz2 rneovim-ce9a9b4700262fb50312720bfdffbebfc7d8ef7a.zip | |
vim-patch:9.1.0794: tests: tests may fail on Windows environment (#30874)
Problem: tests: tests may fail on Windows environment
Solution: use shellcmdflag=/D to skip executing autorun from
the registry (Milly)
closes: vim/vim#15900
https://github.com/vim/vim/commit/4f5681dbdfaf25f3357cba3172906c076421c7b9
Cherry-pick Test_cursorhold_insert_with_timer_interrupt() change from
patch 8.2.1836.
Co-authored-by: Milly <milly.ca@gmail.com>
Diffstat (limited to 'test/old/testdir/test_autocmd.vim')
| -rw-r--r-- | test/old/testdir/test_autocmd.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/old/testdir/test_autocmd.vim b/test/old/testdir/test_autocmd.vim index 9d06ebb2be..c2bba8fafc 100644 --- a/test/old/testdir/test_autocmd.vim +++ b/test/old/testdir/test_autocmd.vim @@ -88,9 +88,9 @@ if has('timers') " CursorHoldI event. let g:triggered = 0 au CursorHoldI * let g:triggered += 1 - set updatetime=500 - call job_start(has('win32') ? 'cmd /c echo:' : 'echo', - \ {'exit_cb': {-> timer_start(1000, 'ExitInsertMode')}}) + set updatetime=100 + call job_start(has('win32') ? 'cmd /D /c echo:' : 'echo', + \ {'exit_cb': {-> timer_start(200, 'ExitInsertMode')}}) call feedkeys('a', 'x!') call assert_equal(1, g:triggered) unlet g:triggered |