mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Display unimplemented errors in Yul codegen testing
i.e. do not hide exceptions
This commit is contained in:
parent
f9bfceccd1
commit
4491a290e2
@ -150,9 +150,6 @@ TestCase::TestResult SemanticTest::runTest(ostream& _stream, string const& _line
|
||||
bool constructed = false;
|
||||
|
||||
for (auto& test: m_tests)
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
if (constructed)
|
||||
{
|
||||
@ -177,19 +174,6 @@ TestCase::TestResult SemanticTest::runTest(ostream& _stream, string const& _line
|
||||
soltestAssert(deploy("", 0, bytes(), libraries), "Failed to deploy contract.");
|
||||
constructed = true;
|
||||
}
|
||||
}
|
||||
catch (langutil::UnimplementedFeatureError const&)
|
||||
{
|
||||
// ignore unimplemented feature errors when forcibly trying to compile via yul.
|
||||
if (!_compileViaYul || m_runWithYul)
|
||||
throw;
|
||||
}
|
||||
catch (langutil::Error const& _error)
|
||||
{
|
||||
// ignore unimplemented feature errors when forcibly trying to compile via yul.
|
||||
if (_error.errorId() != 1834_error || !_compileViaYul || m_runWithYul)
|
||||
throw;
|
||||
}
|
||||
|
||||
if (test.call().kind == FunctionCall::Kind::Storage)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user