]> granicus.if.org Git - vim/commitdiff
patch 9.0.0839: test may fail depending on sequence of events v9.0.0839
authorYee Cheng Chin <ychin.git@gmail.com>
Sun, 6 Nov 2022 12:25:47 +0000 (12:25 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 6 Nov 2022 12:25:47 +0000 (12:25 +0000)
Problem:    Test may fail depending on sequence of events.
Solution:   Accept error codes in either order. (Yee Cheng Chin,
            closes #11510)

src/testdir/test_vim9_script.vim
src/version.c

index ac865129f6e2af6fe8384baa97d2f2705798d184..b6e1a89d24c4221997d6d333940340a727ed407c 100644 (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()
index 6aef2c131961e2ff1038b219fc92107681f4a5f4..c454557cdebc126e7f23669f04df6ef9c1a81682 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    839,
 /**/
     838,
 /**/