diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-02-19 01:16:34 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-05-06 00:40:49 +0100 |
commit | 74bdd300cb43aef4f8d3898eecdf20c58d5bf26d (patch) | |
tree | f64ae79701366ff885a9b09c171fcad99c19c4f7 | |
parent | Virtualise fues_main so that the ut framework can get access to the operation... (diff) | |
download | netfs-74bdd300cb43aef4f8d3898eecdf20c58d5bf26d.tar.bz2 netfs-74bdd300cb43aef4f8d3898eecdf20c58d5bf26d.tar.xz netfs-74bdd300cb43aef4f8d3898eecdf20c58d5bf26d.zip |
Initialise the test context with sensible values
-rw-r--r-- | netfs/unittests/testCore.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/netfs/unittests/testCore.cpp b/netfs/unittests/testCore.cpp index 3be4ed0..c1afbe3 100644 --- a/netfs/unittests/testCore.cpp +++ b/netfs/unittests/testCore.cpp @@ -41,6 +41,9 @@ class FuseMock : public NetFS::FuseApp { NetFS::FuseApp(argc, argv) { ::memset(&context, 0, sizeof(fuse_context)); + context.pid = getpid(); + context.uid = getuid(); + context.gid = getgid(); } struct fuse_context * fuse_get_context() override |