From f22acbffe2c0753dd6f2b84ca396fd2fdd14f86b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 15 Feb 2016 20:11:53 +0000 Subject: Test statfs on 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 e933027..083cbab 100644 --- a/netfs/unittests/testCore.cpp +++ b/netfs/unittests/testCore.cpp @@ -64,6 +64,7 @@ BOOST_AUTO_TEST_CASE ( clientInitialised ) { struct statvfs s; BOOST_REQUIRE_EQUAL(0, fuse->statfs("/", &s)); + BOOST_REQUIRE_EQUAL(-ENOENT, fuse->statfs("/missing", &s)); } BOOST_AUTO_TEST_CASE( testNavigation ) -- cgit v1.2.3