Skip to content

Commit bb96226

Browse files
committed
patch 8.0.0430: options test fails or hangs on MS-Windows
Problem: Options test fails or hangs on MS-Windows. Solution: Run it separately instead of part of test_alot. Use "-S" instead of "-u" to run the script. Fix failures.
1 parent e8512d7 commit bb96226

File tree

7 files changed

+15
-8
lines changed

7 files changed

+15
-8
lines changed

src/testdir/Make_all.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ NEW_TESTS = test_arabic.res \
181181
test_netbeans.res \
182182
test_normal.res \
183183
test_number.res \
184+
test_options.res \
184185
test_packadd.res \
185186
test_paste.res \
186187
test_perl.res \

src/testdir/Make_dos.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@ test_gui_init.res: test_gui_init.vim
130130
@del vimcmd
131131

132132
opt_test.vim: ../option.c gen_opt_test.vim
133-
$(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term ../option.c
133+
$(VIMPROG) -u NONE -S gen_opt_test.vim --noplugin --not-a-term ../option.c

src/testdir/Make_ming.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ test_gui_init.res: test_gui_init.vim
133133
@$(DEL) vimcmd
134134

135135
opt_test.vim: ../option.c gen_opt_test.vim
136-
$(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term ../option.c
136+
$(VIMPROG) -u NONE -S gen_opt_test.vim --noplugin --not-a-term ../option.c

src/testdir/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ test_gui_init.res: test_gui_init.vim
142142
@rm vimcmd
143143

144144
opt_test.vim: ../option.c gen_opt_test.vim
145-
$(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term ../option.c
145+
$(VIMPROG) -u NONE -S gen_opt_test.vim --noplugin --not-a-term ../option.c

src/testdir/gen_opt_test.vim

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ let script = [
1313
\ 'let save_term = &term',
1414
\ ]
1515

16-
edit
1716
/#define p_term
1817
let end = line('.')
1918

@@ -30,6 +29,7 @@ let test_values = {
3029
\ 'iminsert': [[0, 1], [-1, 3, 999]],
3130
\ 'imsearch': [[-1, 0, 1], [-2, 3, 999]],
3231
\ 'lines': [[2, 24], [-1, 0, 1]],
32+
\ 'linespace': [[0, 2, 4], ['']],
3333
\ 'numberwidth': [[1, 4, 8, 10], [-1, 0, 11]],
3434
\ 'regexpengine': [[0, 1, 2], [-1, 3, 999]],
3535
\ 'report': [[0, 1, 2, 9999], [-1]],
@@ -59,7 +59,7 @@ let test_values = {
5959
\ 'backupext': [['xxx'], ['']],
6060
\ 'belloff': [['', 'all', 'copy,error'], ['xxx']],
6161
\ 'breakindentopt': [['', 'min:3', 'sbr'], ['xxx', 'min', 'min:x']],
62-
\ 'browsedir': [['', 'last', '/tmp/'], ['xxx']],
62+
\ 'browsedir': [['', 'last', '/'], ['xxx']],
6363
\ 'bufhidden': [['', 'hide', 'wipe'], ['xxx', 'hide,wipe']],
6464
\ 'buftype': [['', 'help', 'nofile'], ['xxx', 'help,nofile']],
6565
\ 'casemap': [['', 'internal'], ['xxx']],
@@ -89,6 +89,8 @@ let test_values = {
8989
\ 'foldmarker': [['((,))'], ['', 'xxx']],
9090
\ 'formatoptions': [['', 'vt', 'v,t'], ['xxx']],
9191
\ 'guicursor': [['', 'n:block-Cursor'], ['xxx']],
92+
\ 'guifont': [['', 'fixedsys'], []],
93+
\ 'guifontwide': [['', 'fixedsys'], []],
9294
\ 'helplang': [['', 'de', 'de,it'], ['xxx']],
9395
\ 'highlight': [['', 'e:Error'], ['xxx']],
9496
\ 'isfname': [['', '@', '@,48-52'], ['xxx', '@48']],
@@ -108,6 +110,7 @@ let test_values = {
108110
\ 'printmbfont': [['', 'r:some', 'b:Bold,c:yes'], ['xxx']],
109111
\ 'printoptions': [['', 'header:0', 'left:10pc,top:5pc'], ['xxx']],
110112
\ 'scrollopt': [['', 'ver', 'ver,hor'], ['xxx']],
113+
\ 'renderoptions': [['', 'type:directx'], ['xxx']],
111114
\ 'selection': [['old', 'inclusive'], ['', 'xxx']],
112115
\ 'selectmode': [['', 'mouse', 'key,cmd'], ['xxx']],
113116
\ 'sessionoptions': [['', 'blank', 'help,options,slash'], ['xxx']],
@@ -116,11 +119,11 @@ let test_values = {
116119
\ 'spellsuggest': [['', 'best', 'double,33'], ['xxx']],
117120
\ 'switchbuf': [['', 'useopen', 'split,newtab'], ['xxx']],
118121
\ 'tagcase': [['smart', 'match'], ['', 'xxx', 'smart,match']],
119-
\ 'term': [['ansi'], ['', 'gui']],
122+
\ 'term': [[], []],
120123
\ 'toolbar': [['', 'icons', 'text'], ['xxx']],
121124
\ 'toolbariconsize': [['', 'tiny', 'huge'], ['xxx']],
122125
\ 'ttymouse': [['', 'xterm'], ['xxx']],
123-
\ 'ttytype': [['ansi'], ['', 'gui']],
126+
\ 'ttytype': [[], []],
124127
\ 'viewoptions': [['', 'cursor', 'unix,slash'], ['xxx']],
125128
\ 'viminfo': [['', '''50', '"30'], ['xxx']],
126129
\ 'virtualedit': [['', 'all', 'all,block'], ['xxx']],
@@ -189,6 +192,8 @@ while 1
189192

190193
if name == 'more'
191194
call add(script, 'set nomore')
195+
elseif name == 'lines'
196+
call add(script, 'let &lines = save_lines')
192197
endif
193198
endif
194199
endwhile

src/testdir/test_alot.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ source test_timers.vim
5050
source test_true_false.vim
5151
source test_unlet.vim
5252
source test_window_cmd.vim
53-
source test_options.vim

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+
430,
767769
/**/
768770
429,
769771
/**/

0 commit comments

Comments
 (0)