diff options
author | chriseth <chris@ethereum.org> | 2017-07-27 17:48:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 17:48:08 +0800 |
commit | 16977bab7da2b6f7c37635fbf546f08a74dc9a06 (patch) | |
tree | 264a4328448c0a7eae35bba4a86b79211d899974 /test | |
parent | a20e5fc0481d49616ea3a931e72b5c2e8b255e73 (diff) | |
parent | ca28ce7d7b802fd1a5c971f53ec1d867f80e506c (diff) | |
download | dexon-solidity-16977bab7da2b6f7c37635fbf546f08a74dc9a06.tar dexon-solidity-16977bab7da2b6f7c37635fbf546f08a74dc9a06.tar.gz dexon-solidity-16977bab7da2b6f7c37635fbf546f08a74dc9a06.tar.bz2 dexon-solidity-16977bab7da2b6f7c37635fbf546f08a74dc9a06.tar.lz dexon-solidity-16977bab7da2b6f7c37635fbf546f08a74dc9a06.tar.xz dexon-solidity-16977bab7da2b6f7c37635fbf546f08a74dc9a06.tar.zst dexon-solidity-16977bab7da2b6f7c37635fbf546f08a74dc9a06.zip |
Merge pull request #2650 from ethereum/metadata-test-fix
Fix metadata tests
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/Metadata.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/libsolidity/Metadata.cpp b/test/libsolidity/Metadata.cpp index 30de7908..0d3caddd 100644 --- a/test/libsolidity/Metadata.cpp +++ b/test/libsolidity/Metadata.cpp @@ -75,7 +75,8 @@ BOOST_AUTO_TEST_CASE(metadata_relevant_sources) } )"; compilerStack.addSource("B", std::string(sourceCode)); - ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(dev::test::Options::get().optimize), "Compiling contract failed"); + compilerStack.setOptimiserSettings(dev::test::Options::get().optimize); + ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(), "Compiling contract failed"); std::string const& serialisedMetadata = compilerStack.metadata("A"); BOOST_CHECK(dev::test::isValidMetadata(serialisedMetadata)); @@ -112,7 +113,8 @@ BOOST_AUTO_TEST_CASE(metadata_relevant_sources_imports) } )"; compilerStack.addSource("C", std::string(sourceCode)); - ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(dev::test::Options::get().optimize), "Compiling contract failed"); + compilerStack.setOptimiserSettings(dev::test::Options::get().optimize); + ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(), "Compiling contract failed"); std::string const& serialisedMetadata = compilerStack.metadata("C"); BOOST_CHECK(dev::test::isValidMetadata(serialisedMetadata)); |