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-02-19 01:17:54 +0000
commit3d3f44390551777ce5d97bd5a206b8365cfc99c7 (patch)
treeda89a14a94df322cae11e44ba13a57e1bf787535
parentInitialise the test context with sensible values (diff)
downloadnetfs-3d3f44390551777ce5d97bd5a206b8365cfc99c7.tar.bz2
netfs-3d3f44390551777ce5d97bd5a206b8365cfc99c7.tar.xz
netfs-3d3f44390551777ce5d97bd5a206b8365cfc99c7.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
{