aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-06-01 22:48:13 +0800
committerLiana Husikyan <liana@ethdev.com>2015-06-01 22:48:13 +0800
commitb810df04f0ebcc65ed7a57fa650d5bb090c8b31d (patch)
tree6acc325d4f08e70f59041af2eda077b86f80b6ef
parentc6a8938ed74b54b0351f30d8d4a3601c8d1eb871 (diff)
downloaddexon-solidity-b810df04f0ebcc65ed7a57fa650d5bb090c8b31d.tar.gz
dexon-solidity-b810df04f0ebcc65ed7a57fa650d5bb090c8b31d.tar.zst
dexon-solidity-b810df04f0ebcc65ed7a57fa650d5bb090c8b31d.zip
renamed the test framwork function.
-rw-r--r--libsolidity/SolidityEndToEndTest.cpp2
-rw-r--r--libsolidity/solidityExecutionFramework.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/SolidityEndToEndTest.cpp b/libsolidity/SolidityEndToEndTest.cpp
index db115b10..9f6f27d7 100644
--- a/libsolidity/SolidityEndToEndTest.cpp
+++ b/libsolidity/SolidityEndToEndTest.cpp
@@ -4169,7 +4169,7 @@ BOOST_AUTO_TEST_CASE(evm_exceptions_in_constructor_out_of_baund)
}
}
)";
- BOOST_CHECK(execute(sourceCode, 0, "A").empty());
+ BOOST_CHECK(compileAndRunWthoutCheck(sourceCode, 0, "A").empty());
}
BOOST_AUTO_TEST_SUITE_END()
diff --git a/libsolidity/solidityExecutionFramework.h b/libsolidity/solidityExecutionFramework.h
index ddbbb016..c29257dd 100644
--- a/libsolidity/solidityExecutionFramework.h
+++ b/libsolidity/solidityExecutionFramework.h
@@ -42,7 +42,7 @@ class ExecutionFramework
public:
ExecutionFramework() { g_logVerbosity = 0; }
- bytes const& execute(std::string const& _sourceCode, u256 const& _value = 0, std::string const& _contractName = "")
+ bytes const& compileAndRunWthoutCheck(std::string const& _sourceCode, u256 const& _value = 0, std::string const& _contractName = "")
{
m_compiler.reset(false, m_addStandardSources);
m_compiler.addSource("", _sourceCode);
@@ -54,7 +54,7 @@ public:
bytes const& compileAndRun(std::string const& _sourceCode, u256 const& _value = 0, std::string const& _contractName = "")
{
- execute(_sourceCode, _value, _contractName);
+ compileAndRunWthoutCheck(_sourceCode, _value, _contractName);
BOOST_REQUIRE(!m_output.empty());
return m_output;
}