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:23:01 UTC
svn commit: r1653676 -
/subversion/trunk/subversion/tests/libsvn_subr/io-test.c
Author: philip
Date: Wed Jan 21 22:23:00 2015
New Revision: 1653676
URL: http://svn.apache.org/r1653676
Log:
* subversion/tests/libsvn_subr/io-test.c
(ignore_enoent): On Windows expect permissions changes to 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=1653676&r1=1653675&r2=1653676&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:23:00 2015
@@ -739,10 +739,17 @@ ignore_enoent(apr_pool_t *pool)
ASSERT_ENOTDIR(svn_io_remove_dir2(path, TRUE, NULL, NULL, pool));
#endif
SVN_ERR(svn_io_remove_file2(path, TRUE, pool));
+#ifdef WIN32
+ SVN_ERR(svn_io_set_file_read_only(path, TRUE, pool));
+ SVN_ERR(svn_io_set_file_read_write(path, TRUE, pool));
+ SVN_ERR(svn_io_set_file_executable(path, TRUE, TRUE, pool));
+ SVN_ERR(svn_io_set_file_executable(path, FALSE, TRUE, pool));
+#else
ASSERT_ENOTDIR(svn_io_set_file_read_only(path, TRUE, pool));
ASSERT_ENOTDIR(svn_io_set_file_read_write(path, TRUE, pool));
ASSERT_ENOTDIR(svn_io_set_file_executable(path, TRUE, TRUE, pool));
ASSERT_ENOTDIR(svn_io_set_file_executable(path, FALSE, TRUE, pool));
+#endif
SVN_ERR(svn_io_stat_dirent2(&dirent_p, path, TRUE, TRUE, pool, pool));
SVN_ERR(svn_io_stat_dirent2(&dirent_p, path, FALSE, TRUE, pool, pool));