From 74bdd300cb43aef4f8d3898eecdf20c58d5bf26d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 19 Feb 2015 01:16:34 +0000 Subject: Initialise the test context with sensible values --- netfs/unittests/testCore.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3