aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-07-19 17:49:27 +0800
committerGitHub <noreply@github.com>2017-07-19 17:49:27 +0800
commite45e95f578ee51788bc4d7d588c84e2cc3060420 (patch)
tree4c734e40b22dc639b1fdf3fb71cc43bd4bfae45b
parent3ad326beba8fc9bb65e6ef6fa01d93248ab85db2 (diff)
parent407a6e1a0f9d40812567cf06dd9fac156ea4063d (diff)
downloaddexon-solidity-e45e95f578ee51788bc4d7d588c84e2cc3060420.tar
dexon-solidity-e45e95f578ee51788bc4d7d588c84e2cc3060420.tar.gz
dexon-solidity-e45e95f578ee51788bc4d7d588c84e2cc3060420.tar.bz2
dexon-solidity-e45e95f578ee51788bc4d7d588c84e2cc3060420.tar.lz
dexon-solidity-e45e95f578ee51788bc4d7d588c84e2cc3060420.tar.xz
dexon-solidity-e45e95f578ee51788bc4d7d588c84e2cc3060420.tar.zst
dexon-solidity-e45e95f578ee51788bc4d7d588c84e2cc3060420.zip
Merge pull request #2596 from ethereum/lll-test-optimiser
Run LLL contract tests with optimiser too
-rw-r--r--test/contracts/LLL_ENS.cpp2
-rw-r--r--test/contracts/LLL_ERC20.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/contracts/LLL_ENS.cpp b/test/contracts/LLL_ENS.cpp
index 3df1546d..c5fe8a82 100644
--- a/test/contracts/LLL_ENS.cpp
+++ b/test/contracts/LLL_ENS.cpp
@@ -345,7 +345,7 @@ protected:
if (!s_compiledEns)
{
vector<string> errors;
- s_compiledEns.reset(new bytes(compileLLL(ensCode, false, &errors)));
+ s_compiledEns.reset(new bytes(compileLLL(ensCode, dev::test::Options::get().optimize, &errors)));
BOOST_REQUIRE(errors.empty());
}
sendMessage(*s_compiledEns, true);
diff --git a/test/contracts/LLL_ERC20.cpp b/test/contracts/LLL_ERC20.cpp
index 3ee1aa98..25665d64 100644
--- a/test/contracts/LLL_ERC20.cpp
+++ b/test/contracts/LLL_ERC20.cpp
@@ -396,7 +396,7 @@ protected:
if (!s_compiledErc20)
{
vector<string> errors;
- s_compiledErc20.reset(new bytes(compileLLL(erc20Code, false, &errors)));
+ s_compiledErc20.reset(new bytes(compileLLL(erc20Code, dev::test::Options::get().optimize, &errors)));
BOOST_REQUIRE(errors.empty());
}
sendMessage(*s_compiledErc20, true);