From: Bram Moolenaar Date: Sat, 21 Apr 2018 18:12:35 +0000 (+0200) Subject: patch 8.0.1744: on some systems /dev/stdout isn't writable X-Git-Tag: v8.0.1744 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9980b37a80dc72eef05bf8862aaf475ab17790a5;p=thirdparty%2Fvim.git 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) --- diff --git a/src/testdir/test_writefile.vim b/src/testdir/test_writefile.vim index b8e0001f71..672ddd3a74 100644 --- 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 index 52486ac6db..0c25fd7f04 100644 --- a/src/version.c +++ b/src/version.c @@ -761,6 +761,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1744, /**/ 1743, /**/