diff --git a/test/ExecutionFramework.cpp b/test/ExecutionFramework.cpp index cc54e7a7b..170f5638c 100644 --- a/test/ExecutionFramework.cpp +++ b/test/ExecutionFramework.cpp @@ -53,12 +53,16 @@ ExecutionFramework::ExecutionFramework(langutil::EVMVersion _evmVersion): m_optimiserSettings = solidity::frontend::OptimiserSettings::full(); else if (solidity::test::CommonOptions::get().optimize) m_optimiserSettings = solidity::frontend::OptimiserSettings::standard(); - m_evmHost->reset(); + reset(); +} + +void ExecutionFramework::reset() +{ + m_evmHost->reset(); for (size_t i = 0; i < 10; i++) m_evmHost->accounts[EVMHost::convertToEVMC(account(i))].balance = EVMHost::convertToEVMC(u256(1) << 100); - } std::pair ExecutionFramework::compareAndCreateMessage( diff --git a/test/ExecutionFramework.h b/test/ExecutionFramework.h index 6a3ffc0fb..e55a12aa6 100644 --- a/test/ExecutionFramework.h +++ b/test/ExecutionFramework.h @@ -251,6 +251,8 @@ private: } protected: + void reset(); + void sendMessage(bytes const& _data, bool _isCreation, u256 const& _value = 0); void sendEther(Address const& _to, u256 const& _value); size_t currentTimestamp(); diff --git a/test/libsolidity/SemanticTest.cpp b/test/libsolidity/SemanticTest.cpp index b1ef9372a..b2c4628da 100644 --- a/test/libsolidity/SemanticTest.cpp +++ b/test/libsolidity/SemanticTest.cpp @@ -101,6 +101,7 @@ TestCase::TestResult SemanticTest::run(ostream& _stream, string const& _linePref { for(bool compileViaYul: set{!m_runWithoutYul, m_runWithYul}) { + reset(); bool success = true; m_compileViaYul = compileViaYul;