Yasuhiro Matsumoto wrote:

> behavior is I expected. but tests are failing with my patch.
> 
> From test_channel.vim:
> Found errors in Test_out_close_cb():
> function RunTheTest[9]..Test_out_close_cb line 26: Expected 2 but got 0
> Found errors in Test_pipe_to_buffer_name():
> function RunTheTest[9]..Test_pipe_to_buffer_name[1]..Run_test_pipe_to_buffer 
> line 35: Expected 'yes' but got 'no'
> Found errors in Test_pipe_to_buffer_name_nomod():
> Caught exception in Test_pipe_to_buffer_name_nomod(): Vim(sleep):E117: 
> Unknown function: CloseHandler @ function 
> RunTheTest[9]..Test_pipe_to_buffer_name_nomod[1]..Run_test_pipe_to_buffer[28]..WaitFor,
>  line 20
> Found errors in Test_read_in_close_cb():
> function RunTheTest[9]..Test_read_in_close_cb line 15: Expected 'quit' but 
> got ''

Maybe PeekNamedPipe() is not the right function to use?
How about doing a non-blocking read?

-- 
In Joseph Heller's novel "Catch-22", the main character tries to get out of a
war by proving he is crazy.  But the mere fact he wants to get out of the war
only shows he isn't crazy -- creating the original "Catch-22".

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui