1
0
forked from aniani/vim

patch 9.0.0846: using assert_fails() may cause hit-enter prompt

Problem:    Using assert_fails() may cause hit-enter prompt.
Solution:   Set no_wait_return. (closes #11522)
This commit is contained in:
Bram Moolenaar
2022-11-09 00:44:30 +00:00
parent 4e7590ec00
commit f220643c26
3 changed files with 11 additions and 3 deletions

View File

@@ -338,6 +338,12 @@ func Test_assert_fails_in_try_block()
endtry
endfunc
func Test_assert_fails_in_timer()
" should not cause a hit-enter prompt, which isn't actually checked here
call timer_start(0, {-> assert_fails('call', 'E471:')})
sleep 10m
endfunc
func Test_assert_beeps()
new
call assert_equal(0, assert_beeps('normal h'))