summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-02-19 01:17:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-05-06 00:40:49 +0100
commit161b1e5f69a9bf2b1ec7480ea439405c3597976c (patch)
treeda89a14a94df322cae11e44ba13a57e1bf787535
parentInitialise the test context with sensible values (diff)
downloadnetfs-161b1e5f69a9bf2b1ec7480ea439405c3597976c.tar.bz2
netfs-161b1e5f69a9bf2b1ec7480ea439405c3597976c.tar.xz
netfs-161b1e5f69a9bf2b1ec7480ea439405c3597976c.zip
Keep a copy of fuse operations map
-rw-r--r--netfs/unittests/testCore.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/netfs/unittests/testCore.cpp b/netfs/unittests/testCore.cpp
index c1afbe3..0f74925 100644
--- a/netfs/unittests/testCore.cpp
+++ b/netfs/unittests/testCore.cpp
@@ -62,9 +62,12 @@ class FuseMock : public NetFS::FuseApp {
int main(int &, char **, const struct fuse_operations * o) override
{
o->init(NULL);
+ ops = *o;
return 0;
}
+ fuse_operations ops;
+
protected:
virtual NetFS::Client::ConfigurationPtr ReadConfiguration(const std::string &) const override
{