mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Non-fatal erros do not stop ASTJSON test execution
This commit is contained in:
parent
5f7ff667b9
commit
38639417e1
@ -141,13 +141,13 @@ TestCase::TestResult ASTJSONTest::run(ostream& _stream, string const& _linePrefi
|
|||||||
|
|
||||||
if (!c.parseAndAnalyze(variant.stopAfter))
|
if (!c.parseAndAnalyze(variant.stopAfter))
|
||||||
{
|
{
|
||||||
// Ignore non-fatal analysis errors, we only want to export.
|
// We just want to export so raise fatal analysis errors only
|
||||||
if (c.state() > CompilerStack::State::Parsed)
|
if (c.state() < CompilerStack::State::ParsedAndImported)
|
||||||
continue;
|
{
|
||||||
|
SourceReferenceFormatter formatter(_stream, c, _formatted, false);
|
||||||
SourceReferenceFormatter formatter(_stream, c, _formatted, false);
|
formatter.printErrorInformation(c.errors());
|
||||||
formatter.printErrorInformation(c.errors());
|
return TestResult::FatalError;
|
||||||
return TestResult::FatalError;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resultsMatch = resultsMatch && runTest(
|
resultsMatch = resultsMatch && runTest(
|
||||||
|
Loading…
Reference in New Issue
Block a user