From fd380b11218a89b72a5912d2cc3934747b4a890a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 25 Oct 2017 12:34:30 +0100 Subject: Add missing test for opening 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 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); -- cgit v1.2.3