mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1484: flaky failure in assert_fails()
Problem: Flaky failure in assert_fails(). Solution: Only used fourth argument if there is a third argument.
This commit is contained in:
@@ -615,7 +615,8 @@ f_assert_fails(typval_T *argvars, typval_T *rettv)
|
||||
goto theend;
|
||||
}
|
||||
|
||||
if (!error_found && argvars[3].v_type == VAR_NUMBER
|
||||
if (!error_found && argvars[2].v_type != VAR_UNKNOWN
|
||||
&& argvars[3].v_type == VAR_NUMBER
|
||||
&& argvars[3].vval.v_number >= 0
|
||||
&& argvars[3].vval.v_number != emsg_assert_fails_lnum)
|
||||
{
|
||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1484,
|
||||
/**/
|
||||
1483,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user