aboutsummaryrefslogtreecommitdiffstats
path: root/TestHelper.cpp
diff options
context:
space:
mode:
authorVlad Gluhovsky <gluk256@gmail.com>2015-06-05 01:36:37 +0800
committerVlad Gluhovsky <gluk256@gmail.com>2015-06-05 01:36:37 +0800
commitb905fd80848cf01211316f54b80eb8bd0ea064e6 (patch)
tree56593defead637b7336bb4acd21494add8c98266 /TestHelper.cpp
parent2f88fd6f5874a1f15135d443b5f05699ae971f18 (diff)
downloaddexon-solidity-b905fd80848cf01211316f54b80eb8bd0ea064e6.tar.gz
dexon-solidity-b905fd80848cf01211316f54b80eb8bd0ea064e6.tar.zst
dexon-solidity-b905fd80848cf01211316f54b80eb8bd0ea064e6.zip
fixed peer test
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r--TestHelper.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp
index 793e0565..2c638494 100644
--- a/TestHelper.cpp
+++ b/TestHelper.cpp
@@ -567,8 +567,7 @@ void userDefinedTest(std::function<void(json_spirit::mValue&, bool)> 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<void(json_spirit::mValue&, bool)> 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<void(json_spirit::mValue&, bool)> doTests)