changeset 31008:91d0f3f87e8c v9.0.0839

patch 9.0.0839: test may fail depending on sequence of events Commit: https://github.com/vim/vim/commit/69a8bb8dc13571102537762b047747cc36b53d5d Author: Yee Cheng Chin <ychin.git@gmail.com> 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Nov 2022 13:30:04 +0100
parents 2907ad90d404
children 5bbf18bfeb96
files src/testdir/test_vim9_script.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()
--- 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,