Skip to content

Commit c8a877b

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents f852a0e + c90f2ae commit c8a877b

File tree

9 files changed

+44
-24
lines changed

9 files changed

+44
-24
lines changed

src/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ test1 \
20562056
test_wordcount \
20572057
test_writefile \
20582058
test2 test3 test4 test5 test6 test7 test8 test9 \
2059-
test11 test12 test13 test14 test15 test16 test17 test18 test19 \
2059+
test11 test12 test13 test14 test15 test17 test18 test19 \
20602060
test20 test21 test22 test23 test24 test25 test26 test27 test28 test29 \
20612061
test30 test31 test32 test33 test34 test36 test37 test38 test39 \
20622062
test40 test41 test42 test43 test44 test45 test46 test48 test49 \
@@ -2097,6 +2097,7 @@ test_arglist \
20972097
test_glob2regpat \
20982098
test_gn \
20992099
test_goto \
2100+
test_gui \
21002101
test_hardcopy \
21012102
test_help_tagjump \
21022103
test_history \

src/os_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ null_libintl_ngettext(
577577
const char *msgid_plural,
578578
unsigned long n)
579579
{
580-
return n == 1 ? msgid : msgid_plural;
580+
return (char *)(n == 1 ? msgid : msgid_plural);
581581
}
582582

583583
/*ARGSUSED*/

src/testdir/Make_all.mak

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ SCRIPTS_WIN32 = test50.out
154154

155155

156156
# Tests for the GUI.
157-
SCRIPTS_GUI = test16.out
157+
SCRIPTS_GUI =
158158

159159

160160
# Tests using runtest.vim.vim.
@@ -171,6 +171,7 @@ NEW_TESTS = test_arglist.res \
171171
test_digraph.res \
172172
test_farsi.res \
173173
test_gn.res \
174+
test_gui.res \
174175
test_hardcopy.res \
175176
test_history.res \
176177
test_increment.res \

src/testdir/Make_vms.mms

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Authors: Zoltan Arpadffy, <[email protected]>
55
# Sandor Kopanyi, <[email protected]>
66
#
7-
# Last change: 2016 Feb 25
7+
# Last change: 2016 Aug 04
88
#
99
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
1010
# Edit the lines in the Configuration section below to select.
@@ -104,7 +104,7 @@ SCRIPT = $(SCRIPTS_ALL) $(SCRIPTS_MORE3)
104104
# On ODS-2 tests fail.
105105

106106
.IFDEF WANT_GUI
107-
SCRIPT_GUI = test16.out
107+
SCRIPT_GUI =
108108
GUI_OPTION = -g
109109
.ENDIF
110110

src/testdir/runtest.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ else
131131
endif
132132

133133
" Names of flaky tests.
134-
let s:flaky = ['Test_reltime()', 'Test_nb_basic()']
134+
let s:flaky = ['Test_reltime()', 'Test_nb_basic()', 'Test_communicate()']
135135

136136
" Locate Test_ functions and execute them.
137137
set nomore

src/testdir/test16.in

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/testdir/test16.ok

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/testdir/test_gui.vim

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
" Tests specifically for the GUI
2+
3+
if !has('gui') || ($DISPLAY == "" && !has('gui_running'))
4+
finish
5+
endif
6+
7+
" For KDE set a font, empty 'guifont' may cause a hang.
8+
func SetUp()
9+
if has("gui_kde")
10+
set guifont=Courier\ 10\ Pitch/8/-1/5/50/0/0/0/0/0
11+
endif
12+
endfunc
13+
14+
" Test for resetting "secure" flag after GUI has started.
15+
" Must be run first.
16+
func Test_1_set_secure()
17+
set exrc secure
18+
gui -f
19+
call assert_equal(1, has('gui_running'))
20+
endfunc
21+
22+
func Test_shell_command()
23+
new
24+
r !echo hello
25+
call assert_equal('hello', substitute(getline(2), '\W', '', 'g'))
26+
bwipe!
27+
call assert_true(1, match(execute('winpos'), 'Window position: X \d\+, Y \d\+') >= 0)
28+
endfunc

src/version.c

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

779779
static int included_patches[] =
780780
{ /* Add new patch number below this line */
781+
/**/
782+
2156,
783+
/**/
784+
2155,
785+
/**/
786+
2154,
787+
/**/
788+
2153,
781789
/**/
782790
2152,
783791
/**/

0 commit comments

Comments
 (0)