# HG changeset patch # User Christian Brabandt # Date 1524334508 -7200 # Node ID d6553cde129225baf63b88158130196d321776d2 # Parent c1ca4471e8c2c4c1816cdcaf38fba2114535188b patch 8.0.1744: on some systems /dev/stdout isn't writable commit https://github.com/vim/vim/commit/9980b37a80dc72eef05bf8862aaf475ab17790a5 Author: Bram Moolenaar Date: Sat Apr 21 20:12:35 2018 +0200 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 https://github.com/vim/vim/issues/2830) diff --git a/src/testdir/test_writefile.vim b/src/testdir/test_writefile.vim --- a/src/testdir/test_writefile.vim +++ b/src/testdir/test_writefile.vim @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -762,6 +762,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1744, +/**/ 1743, /**/ 1742,