summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.1297
blob: 98214a431b6b66591fff379dfa4929f65f3b2f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1297
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.1297
Problem:    Invalid argument test fails without GTK.
Solution:   Test -display and --display separately.
Files:	    src/testdir/test_startup.vim


*** ../vim-8.1.1296/src/testdir/test_startup.vim	2019-05-08 16:40:57.753592725 +0200
--- src/testdir/test_startup.vim	2019-05-08 17:56:39.782112531 +0200
***************
*** 422,428 ****
      endfor
    endif
  
!   if has('clipboard')
      let out = split(system(GetVimCommand() .. ' --display'), "\n")
      call assert_equal(1, v:shell_error)
      call assert_match('^VIM - Vi IMproved .* (.*)$',         out[0])
--- 422,428 ----
      endfor
    endif
  
!   if has('gui_gtk')
      let out = split(system(GetVimCommand() .. ' --display'), "\n")
      call assert_equal(1, v:shell_error)
      call assert_match('^VIM - Vi IMproved .* (.*)$',         out[0])
***************
*** 430,435 ****
--- 430,443 ----
      call assert_equal('More info with: "vim -h"',            out[2])
    endif
  
+   if has('clipboard')
+     let out = split(system(GetVimCommand() .. ' -display'), "\n")
+     call assert_equal(1, v:shell_error)
+     call assert_match('^VIM - Vi IMproved .* (.*)$',         out[0])
+     call assert_equal('Argument missing after: "-display"', out[1])
+     call assert_equal('More info with: "vim -h"',            out[2])
+   endif
+ 
    let out = split(system(GetVimCommand() .. ' -ix'), "\n")
    call assert_equal(1, v:shell_error)
    call assert_match('^VIM - Vi IMproved .* (.*)$',          out[0])
*** ../vim-8.1.1296/src/version.c	2019-05-08 16:40:57.753592725 +0200
--- src/version.c	2019-05-08 17:57:52.553686381 +0200
***************
*** 769,770 ****
--- 769,772 ----
  {   /* Add new patch number below this line */
+ /**/
+     1297,
  /**/

-- 
<Beeth> Girls are like internet domain names,
        the ones I like are already taken.
<honx>  Well, you can stil get one from a strange country :-P

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///