diff options
author | Gav Wood <g@ethdev.com> | 2015-06-07 13:09:46 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-06-07 13:09:46 +0800 |
commit | 6bd934868044e38d2e53bc587f285a46b1236790 (patch) | |
tree | c2d01d5d7d7ff325b5471b406de4d9fc9490938d | |
parent | 1c9cec26aa95e6297c51cf9836e81cd7934aa850 (diff) | |
parent | 231edfa4cd92d546de23360f11c49554569185c8 (diff) | |
download | dexon-solidity-6bd934868044e38d2e53bc587f285a46b1236790.tar.gz dexon-solidity-6bd934868044e38d2e53bc587f285a46b1236790.tar.zst dexon-solidity-6bd934868044e38d2e53bc587f285a46b1236790.zip |
Merge pull request #2091 from gluk256/v_test_refactor
fixed peer test
-rw-r--r-- | TestHelper.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index 74a4d063..f7da0238 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -581,8 +581,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; @@ -607,14 +606,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) |