Hi,

test_recover.vim fails on non-Win32 systems when root directory is writable.
For example, / is writable on Cygwin.  Also, when I run the test on bitbucket
pipelines, / is writable and the test fails with the following message:

    Found errors in Test_recover_root_dir():
    function RunTheTest[24]..Test_recover_root_dir line 11: command did not 
fail: split Xtest

You can see the full log at here:
https://bitbucket.org/k_takata/vim-ktakata-mq/addon/pipelines/home#!/results/%7B743a2168-d376-49c2-9d57-db77b3a95fd6%7D

Attached patch fixes the problem on these environments.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent  352df9a140db374d767e95b0737c82f7a20d087f

diff --git a/src/testdir/test_recover.vim b/src/testdir/test_recover.vim
--- a/src/testdir/test_recover.vim
+++ b/src/testdir/test_recover.vim
@@ -7,7 +7,7 @@ func Test_recover_root_dir()
   call assert_fails('recover', 'E305:')
   close!
 
-  if has('win32')
+  if has('win32') || filewritable('/') == 2
     " can write in / directory on MS-Windows
     set dir=/notexist/
   endif

Raspunde prin e-mail lui