diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-23 17:53:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-23 17:53:53 +0800 |
commit | f932c7852e014bf608abdb617fb10dfc464ca9bc (patch) | |
tree | 1e5f3880cca4f9663c5f36f0ea21ba3738621089 /test | |
parent | 16e6f6e5841dd582620307e110b3da851e0e0a95 (diff) | |
parent | 365b865d6b92f3035e95ddbc1a7d111413cbe141 (diff) | |
download | rneovim-f932c7852e014bf608abdb617fb10dfc464ca9bc.tar.gz rneovim-f932c7852e014bf608abdb617fb10dfc464ca9bc.tar.bz2 rneovim-f932c7852e014bf608abdb617fb10dfc464ca9bc.zip |
Merge pull request #32593 from zeertzjq/vim-9.1.1139
vim-patch:9.1.{1139,1141}
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_startup_utf8.vim | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/old/testdir/test_startup_utf8.vim b/test/old/testdir/test_startup_utf8.vim index e8b99e7937..96b593f1bd 100644 --- a/test/old/testdir/test_startup_utf8.vim +++ b/test/old/testdir/test_startup_utf8.vim @@ -60,6 +60,34 @@ func Test_read_fifo_utf8() call delete('Xtestout') endfunc +func Test_detect_fifo() + CheckUnix + " Using bash/zsh's process substitution. + if executable('bash') + set shell=bash + elseif executable('zsh') + set shell=zsh + else + throw 'Skipped: bash or zsh is required' + endif + let linesin = ['one', 'two'] + call writefile(linesin, 'Xtestin_fifo', 'D') + let after = [ + \ 'call writefile(split(execute(":mess"), "\\n"), "Xtestout")', + \ 'quit!', + \ ] + " if RunVim([], after, '<(cat Xtestin_fifo)') + if RunVim(['set shortmess-=F'], after, '<(cat Xtestin_fifo)') + let lines = readfile('Xtestout') + call assert_match('\[fifo\]', lines[0]) + " call assert_match('\[fifo\]', lines[1]) + else + call assert_equal('', 'RunVim failed.') + endif + + call delete('Xtestout') +endfunc + func Test_detect_ambiwidth() CheckRunVimInTerminal |