diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-19 15:09:18 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-19 15:10:17 -0400 |
commit | b479f8997910a1c6d878168e06d290c3a1fa8fd6 (patch) | |
tree | 11df42683e2a1d05ed83f9cd288098daf682b328 | |
parent | 6d4d2716944cad3c43234acf8e79aca47edabf6a (diff) | |
download | rneovim-b479f8997910a1c6d878168e06d290c3a1fa8fd6.tar.gz rneovim-b479f8997910a1c6d878168e06d290c3a1fa8fd6.tar.bz2 rneovim-b479f8997910a1c6d878168e06d290c3a1fa8fd6.zip |
vim-patch:8.0.0617: hardcopy test hangs on MS-Windows
Problem: Hardcopy test hangs on MS-Windows.
Solution: Check the postscript feature is supported.
https://github.com/vim/vim/commit/763209c57bf50ae777f9c2929eeea01eff7ae6ee
-rw-r--r-- | src/nvim/testdir/test_hardcopy.vim | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nvim/testdir/test_hardcopy.vim b/src/nvim/testdir/test_hardcopy.vim index 88fe0f6c98..f630556bef 100644 --- a/src/nvim/testdir/test_hardcopy.vim +++ b/src/nvim/testdir/test_hardcopy.vim @@ -63,10 +63,12 @@ func Test_with_syntax() endfunc func Test_fname_with_spaces() - split t\ e\ s\ t.txt - call setline(1, ['just', 'some', 'text']) - hardcopy > %.ps - call assert_true(filereadable('t e s t.txt.ps')) - call delete('t e s t.txt.ps') - bwipe! + if has('postscript') + split t\ e\ s\ t.txt + call setline(1, ['just', 'some', 'text']) + hardcopy > %.ps + call assert_true(filereadable('t e s t.txt.ps')) + call delete('t e s t.txt.ps') + bwipe! + endif endfunc |