forked from aniani/vim
patch 8.0.0293: some tests have a one or three second wait
Problem: Some tests have a one or three second wait. Solution: Reset the 'showmode' option. Use a test time of one to disable sleep after an error or warning message.
This commit is contained in:
@@ -3264,7 +3264,11 @@ change_warning(
|
|||||||
#endif
|
#endif
|
||||||
msg_clr_eos();
|
msg_clr_eos();
|
||||||
(void)msg_end();
|
(void)msg_end();
|
||||||
if (msg_silent == 0 && !silent_mode)
|
if (msg_silent == 0 && !silent_mode
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
|
&& time_for_testing != 1
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
out_flush();
|
out_flush();
|
||||||
ui_delay(1000L, TRUE); /* give the user time to think about it */
|
ui_delay(1000L, TRUE); /* give the user time to think about it */
|
||||||
|
@@ -57,9 +57,6 @@ else
|
|||||||
set encoding=latin1
|
set encoding=latin1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Avoid stopping at the "hit enter" prompt
|
|
||||||
set nomore
|
|
||||||
|
|
||||||
" Output all messages in English.
|
" Output all messages in English.
|
||||||
lang mess C
|
lang mess C
|
||||||
|
|
||||||
@@ -88,6 +85,14 @@ endfunc
|
|||||||
|
|
||||||
function RunTheTest(test)
|
function RunTheTest(test)
|
||||||
echo 'Executing ' . a:test
|
echo 'Executing ' . a:test
|
||||||
|
|
||||||
|
" Avoid stopping at the "hit enter" prompt
|
||||||
|
set nomore
|
||||||
|
|
||||||
|
" Avoid a three second wait when a message is about to be overwritten by the
|
||||||
|
" mode message.
|
||||||
|
set noshowmode
|
||||||
|
|
||||||
if exists("*SetUp")
|
if exists("*SetUp")
|
||||||
try
|
try
|
||||||
call SetUp()
|
call SetUp()
|
||||||
|
@@ -2193,6 +2193,8 @@ func! Test_normal51_FileChangedRO()
|
|||||||
if !has("autocmd")
|
if !has("autocmd")
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
" Don't sleep after the warning message.
|
||||||
|
call test_settime(1)
|
||||||
call writefile(['foo'], 'Xreadonly.log')
|
call writefile(['foo'], 'Xreadonly.log')
|
||||||
new Xreadonly.log
|
new Xreadonly.log
|
||||||
setl ro
|
setl ro
|
||||||
@@ -2202,6 +2204,7 @@ func! Test_normal51_FileChangedRO()
|
|||||||
call assert_equal('Xreadonly.log', bufname(''))
|
call assert_equal('Xreadonly.log', bufname(''))
|
||||||
|
|
||||||
" cleanup
|
" cleanup
|
||||||
|
call test_settime(0)
|
||||||
bw!
|
bw!
|
||||||
call delete("Xreadonly.log")
|
call delete("Xreadonly.log")
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
293,
|
||||||
/**/
|
/**/
|
||||||
292,
|
292,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user