comparison src/testdir/test_startup.vim @ 24942:6dc1be6040d1 v8.2.3008

patch 8.2.3008: startup test may hang Commit: https://github.com/vim/vim/commit/55b6b60b691eca7058535006113a1adffda4cabf Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 15 23:05:59 2021 +0200 patch 8.2.3008: startup test may hang Problem: Startup test may hang. Solution: Add quit command in the script.
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Jun 2021 23:15:03 +0200
parents ac0211a9fb6a
children d8216679a971
comparison
equal deleted inserted replaced
24941:582dbe59bccc 24942:6dc1be6040d1
1303 1303
1304 func Test_echo_true_in_cmd() 1304 func Test_echo_true_in_cmd()
1305 let lines =<< trim END 1305 let lines =<< trim END
1306 echo v:true 1306 echo v:true
1307 call writefile(['done'], 'Xresult') 1307 call writefile(['done'], 'Xresult')
1308 quit
1308 END 1309 END
1309 call writefile(lines, 'Xscript') 1310 call writefile(lines, 'Xscript')
1310 if RunVim([], [], '--cmd "source Xscript" --c q') 1311 if RunVim([], [], '--cmd "source Xscript"')
1311 call assert_equal(['done'], readfile('Xresult')) 1312 call assert_equal(['done'], readfile('Xresult'))
1312 endif 1313 endif
1313 call delete('Xscript') 1314 call delete('Xscript')
1314 call delete('Xresult') 1315 call delete('Xresult')
1315 1316