comparison src/testdir/test_quotestar.vim @ 11227:9bfae04699c3 v8.0.0500

patch 8.0.0500: quotestar test is still a bit flaky commit https://github.com/vim/vim/commit/4889ad7c6cd46368f553cc1140ca17508e8beaaa Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 21 18:02:41 2017 +0100 patch 8.0.0500: quotestar test is still a bit flaky Problem: Quotestar test is still a bit flaky. Solution: Add a slower check for v:version.
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Mar 2017 18:15:04 +0100
parents 466657ab7340
children 9612b93820a4
comparison
equal deleted inserted replaced
11226:fa5b6fccc7c7 11227:9bfae04699c3
51 51
52 " Takes a short while for the server to be active. 52 " Takes a short while for the server to be active.
53 call WaitFor('serverlist() =~ "' . name . '"') 53 call WaitFor('serverlist() =~ "' . name . '"')
54 call assert_match(name, serverlist()) 54 call assert_match(name, serverlist())
55 55
56 " Wait for the server to be up and answering requests. One second is not
57 " always sufficient.
58 call WaitFor('remote_expr("' . name . '", "v:version", "", 2) != ""')
59
56 " Clear the *-register of this vim instance. 60 " Clear the *-register of this vim instance.
57 let @* = '' 61 let @* = ''
58 62
59 " Try to change the *-register of the server. 63 " Try to change the *-register of the server.
60 call remote_foreground(name) 64 call remote_foreground(name)
76 " For those GUIs, ignore the 'failed to create input context' error. 80 " For those GUIs, ignore the 'failed to create input context' error.
77 call remote_send(name, ":call test_ignore_error('E285') | gui -f\<CR>") 81 call remote_send(name, ":call test_ignore_error('E285') | gui -f\<CR>")
78 else 82 else
79 call remote_send(name, ":gui -f\<CR>") 83 call remote_send(name, ":gui -f\<CR>")
80 endif 84 endif
81 " Wait for the server to be up and answering requests. 85 " Wait for the server in the GUI to be up and answering requests.
82 call WaitFor('remote_expr("' . name . '", "v:version", "", 1) != ""') 86 call WaitFor('remote_expr("' . name . '", "has(\"gui_running\")", "", 1) =~ "1"')
83 87
84 call remote_send(name, ":let @* = 'maybe'\<CR>") 88 call remote_send(name, ":let @* = 'maybe'\<CR>")
85 call WaitFor('remote_expr("' . name . '", "@*", "", 1) == "maybe"') 89 call WaitFor('remote_expr("' . name . '", "@*", "", 1) == "maybe"')
86 call assert_equal('maybe', remote_expr(name, "@*", "", 2)) 90 call assert_equal('maybe', remote_expr(name, "@*", "", 2))
87 91