]> granicus.if.org Git - vim/commitdiff
patch 8.2.3008: startup test may hang v8.2.3008
authorBram Moolenaar <Bram@vim.org>
Tue, 15 Jun 2021 21:05:59 +0000 (23:05 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 15 Jun 2021 21:05:59 +0000 (23:05 +0200)
Problem:    Startup test may hang.
Solution:   Add quit command in the script.

src/testdir/test_startup.vim
src/version.c

index c65b18cc26967a96cedb168a17c48e3ef1633e82..7e98591ba229408138e464731acc9ec14520e14d 100644 (file)
@@ -1305,9 +1305,10 @@ func Test_echo_true_in_cmd()
   let lines =<< trim END
       echo v:true
       call writefile(['done'], 'Xresult')
+      quit
   END
   call writefile(lines, 'Xscript')
-  if RunVim([], [], '--cmd "source Xscript" --c q')
+  if RunVim([], [], '--cmd "source Xscript"')
     call assert_equal(['done'], readfile('Xresult'))
   endif
   call delete('Xscript')
index 67330fcadc888a986bdd49eedf4d3ada513f094c..f3b34037ddeff0bd1fe773dd037eaa1a97a87354 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3008,
 /**/
     3007,
 /**/