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.
763209c57b
This commit is contained in:
Jan Edmund Lazo
2018-06-19 15:09:18 -04:00
parent 6d4d271694
commit b479f89979

View File

@@ -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