summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-11 00:31:41 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-11 00:31:41 +0000
commitc60cde2b022c74f4fc72764cbe4f870ece257b5c (patch)
tree21c194320e5a5fd4c9ac533f46c40e9c12dd617c
parentR-value construct paths when resolving (diff)
downloadnetfs-c60cde2b022c74f4fc72764cbe4f870ece257b5c.tar.bz2
netfs-c60cde2b022c74f4fc72764cbe4f870ece257b5c.tar.xz
netfs-c60cde2b022c74f4fc72764cbe4f870ece257b5c.zip
Add missing flush in async test case
-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 b56b3d5..06ab752 100644
--- a/netfs/unittests/testCore.cpp
+++ b/netfs/unittests/testCore.cpp
@@ -252,6 +252,7 @@ BOOST_AUTO_TEST_CASE( files )
BOOST_REQUIRE_EQUAL(fuse->open("/test", &fi), 0);
BOOST_REQUIRE_EQUAL(fuse->write("/test", "some test buffer", 16, 0, &fi), 16);
+ BOOST_REQUIRE_EQUAL(fuse->flush("/test", &fi), 0);
BOOST_REQUIRE_EQUAL(fuse->getattr("/test", &st), 0);
BOOST_REQUIRE_EQUAL(st.st_size, 16);
BOOST_REQUIRE_EQUAL(fuse->getattr("/test2", &st), -ENOENT);