From b905fd80848cf01211316f54b80eb8bd0ea064e6 Mon Sep 17 00:00:00 2001 From: Vlad Gluhovsky Date: Thu, 4 Jun 2015 19:36:37 +0200 Subject: [PATCH 1/2] fixed peer test --- TestHelper.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/TestHelper.cpp b/TestHelper.cpp index 793e05652..2c6384942 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -567,8 +567,7 @@ void userDefinedTest(std::function doTests) auto& filename = Options::get().singleTestFile; auto& testname = Options::get().singleTestName; - int currentVerbosity = g_logVerbosity; - g_logVerbosity = 12; + VerbosityHolder sentinel(12); try { cnote << "Testing user defined test: " << filename; @@ -593,14 +592,11 @@ void userDefinedTest(std::function doTests) catch (Exception const& _e) { BOOST_ERROR("Failed Test with Exception: " << diagnostic_information(_e)); - g_logVerbosity = currentVerbosity; } catch (std::exception const& _e) { BOOST_ERROR("Failed Test with Exception: " << _e.what()); - g_logVerbosity = currentVerbosity; } - g_logVerbosity = currentVerbosity; } void executeTests(const string& _name, const string& _testPathAppendix, const boost::filesystem::path _pathToFiller, std::function doTests) From d8973155e308c6ae2aeae843e1a3af91afc0cf7d Mon Sep 17 00:00:00 2001 From: Vlad Gluhovsky Date: Fri, 5 Jun 2015 11:28:19 +0200 Subject: [PATCH 2/2] warnings fixed