mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 7.4.1729
Problem: The Perl interface cannot use 'print' operator for writing directly in standard IO. Solution: Add a minimal implementation of PerlIO Layer feature and try to use it for STDOUT/STDERR. (Damien)
This commit is contained in:
@@ -92,3 +92,14 @@ function Test_VIM_package()
|
||||
perl VIM::SetOption('et')
|
||||
call assert_true(&et)
|
||||
endf
|
||||
|
||||
function Test_stdio()
|
||||
redir =>l:out
|
||||
perl <<EOF
|
||||
VIM::Msg("&VIM::Msg");
|
||||
print "STDOUT";
|
||||
print STDERR "STDERR";
|
||||
EOF
|
||||
redir END
|
||||
call assert_equal(['&VIM::Msg', 'STDOUT', 'STDERR'], split(l:out, "\n"))
|
||||
endf
|
||||
|
Reference in New Issue
Block a user