From 92b19499d8d2c3a9ea84471a6593853af84197dd Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 25 Oct 2017 12:36:00 +0100 Subject: Add missing test for chmoding a missing file --- netfs/unittests/testCore.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3