Skip to content

Commit

Permalink
patch 8.0.1744: on some systems /dev/stdout isn't writable
Browse files Browse the repository at this point in the history
Problem:    On some systems /dev/stdout isn't writable.
Solution:   Skip test if writing is not possible. (James McCoy, closes #2830)
  • Loading branch information
brammool committed Apr 21, 2018
1 parent 6d150f7 commit 9980b37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/testdir/test_writefile.vim
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ func Test_writefile_sync_dev_stdout()
if !has('unix')
return
endif
" Just check that this doesn't cause an error.
call writefile(['one'], '/dev/stdout')
if filewritable('/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
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1744,
/**/
1743,
/**/
Expand Down

0 comments on commit 9980b37

Please sign in to comment.