mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adjust testing framework.
This commit is contained in:
parent
168433f251
commit
8c8c83a104
@ -54,6 +54,12 @@ bytes SolidityExecutionFramework::multiSourceCompileContract(
|
||||
m_compiler.setRevertStringBehaviour(m_revertStrings);
|
||||
if (!m_compiler.compile())
|
||||
{
|
||||
// The testing framework expects an exception for
|
||||
// "unimplemented" yul IR generation.
|
||||
if (m_compileViaYul)
|
||||
for (auto const& error: m_compiler.errors())
|
||||
if (error->type() == langutil::Error::Type::CodeGenerationError)
|
||||
BOOST_THROW_EXCEPTION(*error);
|
||||
langutil::SourceReferenceFormatter formatter(std::cerr);
|
||||
|
||||
for (auto const& error: m_compiler.errors())
|
||||
|
Loading…
Reference in New Issue
Block a user