diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-10-25 12:36:00 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-10-25 12:36:00 +0100 |
commit | 92b19499d8d2c3a9ea84471a6593853af84197dd (patch) | |
tree | ba52bd0d22e8faccef70423b7b878e0cfaa32433 | |
parent | Add missing test for opening a missing file (diff) | |
download | netfs-92b19499d8d2c3a9ea84471a6593853af84197dd.tar.bz2 netfs-92b19499d8d2c3a9ea84471a6593853af84197dd.tar.xz netfs-92b19499d8d2c3a9ea84471a6593853af84197dd.zip |
Add missing test for chmoding a missing file
-rw-r--r-- | netfs/unittests/testCore.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/netfs/unittests/testCore.cpp b/netfs/unittests/testCore.cpp index de790a1..ff5a352 100644 --- a/netfs/unittests/testCore.cpp +++ b/netfs/unittests/testCore.cpp @@ -272,6 +272,7 @@ BOOST_AUTO_TEST_CASE( access ) BOOST_REQUIRE_EQUAL(fuse->access("/dir", R_OK), 0); BOOST_REQUIRE_EQUAL(fuse->access("/dir", W_OK), 0); BOOST_REQUIRE_EQUAL(fuse->access("/dir", X_OK), 0); + BOOST_REQUIRE_EQUAL(fuse->chmod("/missing", 0000), -ENOENT); BOOST_REQUIRE_EQUAL(fuse->chmod("/dir", 0000), 0); BOOST_REQUIRE_EQUAL(fuse->getattr("/dir", &st), 0); BOOST_REQUIRE_EQUAL(st.st_mode, 0000 | S_IFDIR); |