summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-10-25 12:34:30 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-10-25 12:34:30 +0100
commitfd380b11218a89b72a5912d2cc3934747b4a890a (patch)
treefad0160ea5bd4f7c9728bfbf654fac0e91437b4e
parentIceBox configs (diff)
downloadnetfs-fd380b11218a89b72a5912d2cc3934747b4a890a.tar.bz2
netfs-fd380b11218a89b72a5912d2cc3934747b4a890a.tar.xz
netfs-fd380b11218a89b72a5912d2cc3934747b4a890a.zip
Add missing test for opening a missing file
-rw-r--r--netfs/unittests/testCore.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/netfs/unittests/testCore.cpp b/netfs/unittests/testCore.cpp
index 0976512..de790a1 100644
--- a/netfs/unittests/testCore.cpp
+++ b/netfs/unittests/testCore.cpp
@@ -196,6 +196,7 @@ BOOST_AUTO_TEST_CASE( files )
memset(&st, 0, sizeof(st));
memset(&st2, 0, sizeof(st2));
fi.flags = O_RDWR;
+ BOOST_REQUIRE_EQUAL(fuse->open("/test", &fi), -ENOENT);
BOOST_REQUIRE_EQUAL(fuse->create("/test", 0600, &fi), 0);
BOOST_REQUIRE_EQUAL(fuse->release("/test", &fi), 0);
BOOST_REQUIRE_EQUAL(fuse->release("/test", &fi), -EBADF);