]> granicus.if.org Git - vim/commitdiff
patch 8.0.0617: hardcopy test hangs on MS-Windows v8.0.0617
authorBram Moolenaar <Bram@vim.org>
Sun, 4 Jun 2017 19:40:36 +0000 (21:40 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 4 Jun 2017 19:40:36 +0000 (21:40 +0200)
Problem:    Hardcopy test hangs on MS-Windows.
Solution:   Check the postscript feature is supported.

src/testdir/test_hardcopy.vim
src/version.c

index 2a316d4f0f689830eeb17695e4312c97d47cc803..07bb2479b7e0d919cef3b70fe24a5152420ab004 100644 (file)
@@ -62,10 +62,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
index eb46948597925ab47de06fb402f8d5d1525520e0..4fddbb92442d5ec3e7ca4ff55b4b02eb18d0efb8 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    617,
 /**/
     616,
 /**/