forked from aniani/vim
patch 8.0.1744: on some systems /dev/stdout isn't writable
Problem: On some systems /dev/stdout isn't writable. Solution: Skip test if writing is not possible. (James McCoy, closes #2830)
This commit is contained in:
@@ -105,6 +105,10 @@ func Test_writefile_sync_dev_stdout()
|
|||||||
if !has('unix')
|
if !has('unix')
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
" Just check that this doesn't cause an error.
|
if filewritable('/dev/stdout')
|
||||||
call writefile(['one'], '/dev/stdout')
|
" Just check that this doesn't cause an error.
|
||||||
|
call writefile(['one'], '/dev/stdout')
|
||||||
|
else
|
||||||
|
throw 'Skipped: /dev/stdout is not writable'
|
||||||
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1744,
|
||||||
/**/
|
/**/
|
||||||
1743,
|
1743,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user