Skip to content

Commit 763209c

Browse files
committed
patch 8.0.0617: hardcopy test hangs on MS-Windows
Problem: Hardcopy test hangs on MS-Windows. Solution: Check the postscript feature is supported.
1 parent 1615b36 commit 763209c

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/testdir/test_hardcopy.vim

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ func Test_with_syntax()
6262
endfunc
6363

6464
func Test_fname_with_spaces()
65-
split t\ e\ s\ t.txt
66-
call setline(1, ['just', 'some', 'text'])
67-
hardcopy > %.ps
68-
call assert_true(filereadable('t e s t.txt.ps'))
69-
call delete('t e s t.txt.ps')
70-
bwipe!
65+
if has('postscript')
66+
split t\ e\ s\ t.txt
67+
call setline(1, ['just', 'some', 'text'])
68+
hardcopy > %.ps
69+
call assert_true(filereadable('t e s t.txt.ps'))
70+
call delete('t e s t.txt.ps')
71+
bwipe!
72+
endif
7173
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
617,
767769
/**/
768770
616,
769771
/**/

0 commit comments

Comments
 (0)