Mercurial > vim
comparison src/testdir/test_autocmd.vim @ 30178:8ddf91c8faa6 v9.0.0425
patch 9.0.0425: autocmd test is a bit flaky on MS-Windows
Commit: https://github.com/vim/vim/commit/ae04a6049b3f0e30a671966ed2dda1979e0b5f20
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 9 15:08:10 2022 +0100
patch 9.0.0425: autocmd test is a bit flaky on MS-Windows
Problem: Autocmd test is a bit flaky on MS-Windows.
Solution: Add a bit more sleeping. (Ken Takata, closes https://github.com/vim/vim/issues/11095)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 09 Sep 2022 16:15:02 +0200 |
parents | 008808e60963 |
children | dc238f2c7355 |
comparison
equal
deleted
inserted
replaced
30177:adc2b808fb87 | 30178:8ddf91c8faa6 |
---|---|
761 au VimLeave * call WriteErrors() | 761 au VimLeave * call WriteErrors() |
762 [CODE] | 762 [CODE] |
763 | 763 |
764 call writefile(content, 'Xvimrc', 'D') | 764 call writefile(content, 'Xvimrc', 'D') |
765 call system(GetVimCommand('Xvimrc') .. ' --not-a-term --noplugins -S Session.vim -c cq') | 765 call system(GetVimCommand('Xvimrc') .. ' --not-a-term --noplugins -S Session.vim -c cq') |
766 sleep 50m | 766 sleep 100m |
767 let errors = join(readfile('Xerrors')) | 767 let errors = join(readfile('Xerrors')) |
768 call assert_match('E814:', errors) | 768 call assert_match('E814:', errors) |
769 | 769 |
770 set swapfile | 770 set swapfile |
771 for file in ['Session.vim', 'Xerrors'] | 771 for file in ['Session.vim', 'Xerrors'] |
785 qall | 785 qall |
786 [CODE] | 786 [CODE] |
787 | 787 |
788 call writefile(content, 'XblastBall', 'D') | 788 call writefile(content, 'XblastBall', 'D') |
789 call system(GetVimCommand() .. ' --clean -S XblastBall') | 789 call system(GetVimCommand() .. ' --clean -S XblastBall') |
790 sleep 100m | |
790 call assert_match('OK', readfile('Xerrors')->join()) | 791 call assert_match('OK', readfile('Xerrors')->join()) |
791 | 792 |
792 call delete('Xerrors') | 793 call delete('Xerrors') |
793 endfunc | 794 endfunc |
794 | 795 |
821 au VimLeave * call WriteErrors() | 822 au VimLeave * call WriteErrors() |
822 [CODE] | 823 [CODE] |
823 | 824 |
824 call writefile(content, 'Xvimrc', 'D') | 825 call writefile(content, 'Xvimrc', 'D') |
825 call system(GetVimCommand('Xvimrc') .. ' --not-a-term --noplugins -S Session.vim -c cq') | 826 call system(GetVimCommand('Xvimrc') .. ' --not-a-term --noplugins -S Session.vim -c cq') |
827 sleep 100m | |
826 let errors = join(readfile('Xerrors')) | 828 let errors = join(readfile('Xerrors')) |
827 " This probably only ever matches on unix. | 829 " This probably only ever matches on unix. |
828 call assert_notmatch('Caught deadly signal SEGV', errors) | 830 call assert_notmatch('Caught deadly signal SEGV', errors) |
829 call assert_match('SessionLoadPost DONE', errors) | 831 call assert_match('SessionLoadPost DONE', errors) |
830 | 832 |