Skip to content

Commit

Permalink
Disable affected optimizer tests for old evm versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ekpyron committed Mar 12, 2021
1 parent 0a520ad commit ba21375
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/libyul/YulOptimizerTest.cpp
Expand Up @@ -63,6 +63,12 @@ YulOptimizerTest::YulOptimizerTest(string const& _filename):
m_dialect = &dialect(dialectName, solidity::test::CommonOptions::get().evmVersion());

m_expectation = m_reader.simpleExpectations();

if (!solidity::test::CommonOptions::get().evmVersion().supportsReturndata() && (
m_optimizerStep == "fullSuite" ||
m_optimizerStep == "zeroByReturndatasizeReplacer"
))
m_shouldRun = false;
}

TestCase::TestResult YulOptimizerTest::run(ostream& _stream, string const& _linePrefix, bool const _formatted)
Expand Down

0 comments on commit ba21375

Please sign in to comment.