summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/unittests/testCore.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/netfs/unittests/testCore.cpp b/netfs/unittests/testCore.cpp
index 3e64d40..4b12871 100644
--- a/netfs/unittests/testCore.cpp
+++ b/netfs/unittests/testCore.cpp
@@ -287,6 +287,9 @@ BOOST_AUTO_TEST_CASE( symlinks )
BOOST_REQUIRE_EQUAL("/test2", buf);
BOOST_REQUIRE_EQUAL(fuse->unlink("/test3"), 0);
BOOST_REQUIRE_EQUAL(fuse->unlink("/test3"), -ENOENT);
+ disableWriteOnDir(fuse, "/");
+ BOOST_REQUIRE_EQUAL(fuse->symlink("/test2", "/test3"), -EACCES);
+ enableWriteOnDir(fuse, "/");
}
BOOST_AUTO_TEST_CASE( access )