Skip to content

Commit f8df7ad

Browse files
committed
patch 7.4.1333
Problem: Channel test fails on non-darwin builds. Solution: Add the "osx" feature and test for that. (Kazunobu Kuriyama)
1 parent acd58ef commit f8df7ad

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

runtime/doc/eval.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7275,7 +7275,8 @@ listcmds Compiled with commands for the buffer list |:files|
72757275
localmap Compiled with local mappings and abbr. |:map-local|
72767276
lua Compiled with Lua interface |Lua|.
72777277
mac Macintosh version of Vim.
7278-
macunix Macintosh version of Vim, using Unix files (OS-X).
7278+
macunix Compiled for OS X, with darwin
7279+
osx Compiled for OS X, with or without darwin
72797280
menu Compiled with support for |:menu|.
72807281
mksession Compiled with support for |:mksession|.
72817282
modify_fname Compiled with file name modifiers. |filename-modifiers|

src/eval.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13117,7 +13117,10 @@ f_has(typval_T *argvars, typval_T *rettv)
1311713117
"mac",
1311813118
#endif
1311913119
#if defined(MACOS_X_UNIX)
13120-
"macunix",
13120+
"macunix", /* built with 'darwin' enabled */
13121+
#endif
13122+
#if defined(__APPLE__) && __APPLE__ == 1
13123+
"osx", /* built with or without 'darwin' enabled */
1312113124
#endif
1312213125
#ifdef __QNX__
1312313126
"qnx",

src/testdir/test_channel.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ else
2828
finish
2929
endif
3030

31-
let s:chopt = has('macunix') ? {'waittime' : 1} : {}
31+
let s:chopt = has('osx') ? {'waittime' : 1} : {}
3232

3333
" Run "testfunc" after sarting the server and stop the server afterwards.
3434
func s:run_server(testfunc)

src/version.c

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

748748
static int included_patches[] =
749749
{ /* Add new patch number below this line */
750+
/**/
751+
1333,
750752
/**/
751753
1332,
752754
/**/

0 commit comments

Comments
 (0)