1
0
forked from aniani/vim

patch 9.0.0839: test may fail depending on sequence of events

Problem:    Test may fail depending on sequence of events.
Solution:   Accept error codes in either order. (Yee Cheng Chin,
            closes #11510)
This commit is contained in:
Yee Cheng Chin 2022-11-06 12:25:47 +00:00 committed by Bram Moolenaar
parent a25f718431
commit 69a8bb8dc1
2 changed files with 4 additions and 1 deletions

View File

@ -4087,7 +4087,8 @@ def Test_no_unknown_error_after_error()
endfor
END
writefile(lines, 'Xdef', 'D')
assert_fails('so Xdef', ['E684:', 'E1012:'])
# Either the exit or out callback is called first, accept them in any order
assert_fails('so Xdef', ['E684:\|E1012:', 'E1012:\|E684:'])
enddef
def InvokeNormal()

View File

@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
839,
/**/
838,
/**/