# HG changeset patch # User Bram Moolenaar # Date 1667737804 -3600 # Node ID 91d0f3f87e8c8496f8c05fa68a65a779c967269c # Parent 2907ad90d404a714f205c269ab68a6c9145839fa patch 9.0.0839: test may fail depending on sequence of events Commit: https://github.com/vim/vim/commit/69a8bb8dc13571102537762b047747cc36b53d5d Author: Yee Cheng Chin Date: Sun Nov 6 12:25:47 2022 +0000 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) diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -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() diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 839, +/**/ 838, /**/ 837,