comparison src/testdir/test_channel.vim @ 9191:ce045e4d3244 v7.4.1879

commit https://github.com/vim/vim/commit/e38a2f7ebda791bcecccd657919ae9f7e2f6438c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 2 20:07:09 2016 +0200 patch 7.4.1879 Problem: Channel test is flaky. Solution: Wait for close_cb to be invoked.
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Jun 2016 20:15:06 +0200
parents fb1a19011fbe
children 7d13d180a6ae
comparison
equal deleted inserted replaced
9190:468d1d8dc054 9191:ce045e4d3244
706 call ch_sendraw(handle, "echo line one\n") 706 call ch_sendraw(handle, "echo line one\n")
707 call ch_sendraw(handle, "echo line two\n") 707 call ch_sendraw(handle, "echo line two\n")
708 call ch_sendraw(handle, "double this\n") 708 call ch_sendraw(handle, "double this\n")
709 call ch_sendraw(handle, "quit\n") 709 call ch_sendraw(handle, "quit\n")
710 sp pipe-output 710 sp pipe-output
711 call s:waitFor('line("$") >= 6') 711 call s:waitFor('line("$") >= 6 && s:bufClosed == "yes"')
712 call assert_equal([firstline, 'line one', 'line two', 'this', 'AND this', 'Goodbye!'], getline(1, '$')) 712 call assert_equal([firstline, 'line one', 'line two', 'this', 'AND this', 'Goodbye!'], getline(1, '$'))
713 if a:nomod 713 if a:nomod
714 call assert_equal(0, &modifiable) 714 call assert_equal(0, &modifiable)
715 else 715 else
716 call assert_equal(1, &modifiable) 716 call assert_equal(1, &modifiable)