From 1bc0320811ef2b213bda0629b702bffae5e2f925 Mon Sep 17 00:00:00 2001 From: chriseth Date: Sat, 6 Aug 2016 11:37:52 +0200 Subject: Cleanup of test suite init. --- test/TestHelper.h | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'test/TestHelper.h') diff --git a/test/TestHelper.h b/test/TestHelper.h index 49931614..beb081cd 100644 --- a/test/TestHelper.h +++ b/test/TestHelper.h @@ -103,19 +103,15 @@ namespace test while (0) - class Options - { - public: - std::string ipcPath; - int tArgc; - char **tArgv; - /// Get reference to options - /// The first time used, options are parsed with argc, argv - static Options const& get(int argc = 0, char** argv = 0); +struct Options: boost::noncopyable +{ + std::string ipcPath; + + Options const& get(); + +private: + Options(); +}; - private: - Options(int argc, char** argv = 0); - Options(Options const&) = delete; - }; } } -- cgit