Mercurial > vim
comparison src/testdir/test_channel.vim @ 8692:683b3702970a v7.4.1635
commit https://github.com/vim/vim/commit/6a06363861fcc6beca6e06b39385da411ce58633
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 21 23:18:54 2016 +0100
patch 7.4.1635
Problem: Channel test is a bit flaky.
Solution: Remove 'DETACH' if it's there.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 21 Mar 2016 23:30:04 +0100 |
parents | 289765409225 |
children | ff9973bbbfcb |
comparison
equal
deleted
inserted
replaced
8691:10294afbbce0 | 8692:683b3702970a |
---|---|
683 call ch_sendraw(handle, "echo line two\n") | 683 call ch_sendraw(handle, "echo line two\n") |
684 call ch_sendraw(handle, "double this\n") | 684 call ch_sendraw(handle, "double this\n") |
685 call ch_sendraw(handle, "quit\n") | 685 call ch_sendraw(handle, "quit\n") |
686 sp pipe-output | 686 sp pipe-output |
687 call s:waitFor('line("$") >= 6') | 687 call s:waitFor('line("$") >= 6') |
688 if getline('$') == 'DETACH' | |
689 $del | |
690 endif | |
688 call assert_equal([firstline, 'line one', 'line two', 'this', 'AND this', 'Goodbye!'], getline(1, '$')) | 691 call assert_equal([firstline, 'line one', 'line two', 'this', 'AND this', 'Goodbye!'], getline(1, '$')) |
689 bwipe! | 692 bwipe! |
690 finally | 693 finally |
691 call job_stop(job) | 694 call job_stop(job) |
692 endtry | 695 endtry |