You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2015/01/21 23:10:10 UTC

svn commit: r1653672 - /subversion/trunk/subversion/tests/libsvn_subr/io-test.c

Author: philip
Date: Wed Jan 21 22:10:10 2015
New Revision: 1653672

URL: http://svn.apache.org/r1653672
Log:
* subversion/tests/libsvn_subr/io-test.c
  (ignore_enoent): On Windows svn_io_remove_dir2 will succeed.

Modified:
    subversion/trunk/subversion/tests/libsvn_subr/io-test.c

Modified: subversion/trunk/subversion/tests/libsvn_subr/io-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/io-test.c?rev=1653672&r1=1653671&r2=1653672&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/io-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/io-test.c Wed Jan 21 22:10:10 2015
@@ -733,7 +733,11 @@ ignore_enoent(apr_pool_t *pool)
   /* Path does not exist as child of file. */
   /* ### Some return SUCCESS others ENOTDIR, is that what we want? */
   path = svn_dirent_join(path, "not-present", pool);
+#ifdef WIN32
+  SVN_ERR(svn_io_remove_dir2(path, TRUE, NULL, NULL, pool));
+#else
   ASSERT_ENOTDIR(svn_io_remove_dir2(path, TRUE, NULL, NULL, pool));
+#endif
   SVN_ERR(svn_io_remove_file2(path, TRUE, pool));
   ASSERT_ENOTDIR(svn_io_set_file_read_only(path, TRUE, pool));
   ASSERT_ENOTDIR(svn_io_set_file_read_write(path, TRUE, pool));