Merge #10141 from blueyed/vim-8.0.1335

vim-patch:8.0.{1335,1339,1744}
This commit is contained in:
Justin M. Keyes 2019-06-08 13:09:35 +02:00 committed by GitHub
commit faec6fcc6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,3 +155,15 @@ func Test_writefile_autowrite_nowrite()
bwipe! bwipe!
set noautowrite set noautowrite
endfunc endfunc
func Test_writefile_sync_dev_stdout()
if !has('unix')
return
endif
if filewritable('/dev/stdout')
" Just check that this doesn't cause an error.
call writefile(['one'], '/dev/stdout', 's')
else
throw 'Skipped: /dev/stdout is not writable'
endif
endfunc