On Sun, Apr 01, 2018 at 07:49:05AM -0700, Daniel Schepler wrote:
> From 
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/vim.html
> (and I'm also seeing pretty much the same failure under pbuilder):
> 
> ...
> 
> Executing Test_z()
> Executing Test_z_negative_lnum()
> Executing Test_z_overflow()
> Executed 345 tests
> 
> 
> From test_writefile.vim:
> Found errors in Test_writefile_sync_dev_stdout():
> Caught exception in Test_writefile_sync_dev_stdout(): Vim(call):E482:
> Can't create file /dev/stdout @ function

Why is /dev/stdout missing?  It's possible one of the attached patches
will work around that issue, but I'm more curious why that's happening
in the first place.

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB
diff --git i/src/testdir/test_writefile.vim w/src/testdir/test_writefile.vim
index b8e0001f7..86f534d1e 100644
--- i/src/testdir/test_writefile.vim
+++ w/src/testdir/test_writefile.vim
@@ -106,5 +106,5 @@ func Test_writefile_sync_dev_stdout()
     return
   endif
   " Just check that this doesn't cause an error.
-  call writefile(['one'], '/dev/stdout')
+  call writefile(['one'], '/dev/stdout', 'a')
 endfunc
diff --git i/src/testdir/test_writefile.vim w/src/testdir/test_writefile.vim
index b8e0001f7..df383625e 100644
--- i/src/testdir/test_writefile.vim
+++ w/src/testdir/test_writefile.vim
@@ -102,7 +102,7 @@ func Test_writefile_sync_arg()
 endfunc
 
 func Test_writefile_sync_dev_stdout()
-  if !has('unix')
+  if !has('unix') || !filewritable('/dev/stdout')
     return
   endif
   " Just check that this doesn't cause an error.

Reply via email to