mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.3946: when an internal error makes Vim exit the error is not seen
Problem: When an internal error makes Vim exit the error is not seen.
Solution: Add the error to the test output.
1c67f3a977
Add emsg_not_now() check to make code equivalent.
This commit is contained in:
parent
2af9be3db5
commit
aa96a80d5d
@ -830,8 +830,13 @@ static bool semsgv(const char *fmt, va_list ap)
|
||||
/// detected when fuzzing vim.
|
||||
void iemsg(const char *s)
|
||||
{
|
||||
if (emsg_not_now()) {
|
||||
return;
|
||||
}
|
||||
|
||||
emsg(s);
|
||||
#ifdef ABORT_ON_INTERNAL_ERROR
|
||||
set_vim_var_string(VV_ERRMSG, s, -1);
|
||||
abort();
|
||||
#endif
|
||||
}
|
||||
|
@ -257,6 +257,7 @@ endfunc
|
||||
func EarlyExit(test)
|
||||
" It's OK for the test we use to test the quit detection.
|
||||
if a:test != 'Test_zz_quit_detected()'
|
||||
call add(v:errors, v:errmsg)
|
||||
call add(v:errors, 'Test caused Vim to exit: ' . a:test)
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user