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 56c695e..3e64d40 100644
--- a/netfs/unittests/testCore.cpp
+++ b/netfs/unittests/testCore.cpp
@@ -364,6 +364,9 @@ BOOST_AUTO_TEST_CASE( mknod )
BOOST_REQUIRE_EQUAL(st.st_mode, 0600 | S_IFIFO);
BOOST_REQUIRE_EQUAL(fuse->unlink("/nod"), 0);
BOOST_REQUIRE_EQUAL(fuse->unlink("/nod"), -ENOENT);
+ disableWriteOnDir(fuse, "/");
+ BOOST_REQUIRE_EQUAL(fuse->mknod("/nod", 0600 | S_IFIFO, 0), -EACCES);
+ enableWriteOnDir(fuse, "/");
}
BOOST_AUTO_TEST_CASE( renameToDir )