From 7e4a53294dbeedff021c644d3541979a990cc184 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 20 Jul 2015 10:33:40 +0100 Subject: Support specification of configuration files when creating a test core --- netfs/unittests/testCore.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netfs/unittests/testCore.cpp b/netfs/unittests/testCore.cpp index 07590b6..10b04e2 100644 --- a/netfs/unittests/testCore.cpp +++ b/netfs/unittests/testCore.cpp @@ -15,12 +15,12 @@ const std::string testEndpoint("tcp -h localhost -p 12012"); class Core { public: - Core() : + Core(const std::string & daemonConfig = "defaultDaemon.xml", const std::string & fuseConfig = "defaultFuse.xml") : daemonHost(testEndpoint, { - "--NetFSD.ConfigPath=" + (RootDir / "defaultDaemon.xml").string() + "--NetFSD.ConfigPath=" + (RootDir / daemonConfig).string() }), fuseHost(testEndpoint, { - (RootDir / "defaultFuse.xml:testvol").string(), + (RootDir / fuseConfig).string() + ":testvol", (RootDir / "test").string() }), ic(daemonHost.ic), -- cgit v1.2.3