mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10546 from ethereum/isoltestHardError
[isoltest] Error out in case of different result when enforcing via yul.
This commit is contained in:
commit
eaf7d7daa7
@ -226,12 +226,15 @@ TestCase::TestResult SemanticTest::runTest(ostream& _stream, string const& _line
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (success && !m_runWithYul && _compileViaYul)
|
if (!m_runWithYul && _compileViaYul)
|
||||||
{
|
{
|
||||||
m_compileViaYulCanBeSet = true;
|
m_compileViaYulCanBeSet = success;
|
||||||
AnsiColorized(_stream, _formatted, {BOLD, YELLOW}) <<
|
string message = success ?
|
||||||
|
"Test can pass via Yul, but marked with \"compileViaYul: false.\"" :
|
||||||
|
"Test compiles via Yul, but it gives different test results.";
|
||||||
|
AnsiColorized(_stream, _formatted, {BOLD, success ? YELLOW : MAGENTA}) <<
|
||||||
_linePrefix << endl <<
|
_linePrefix << endl <<
|
||||||
_linePrefix << "Test can pass via Yul and marked with compileViaYul: false." << endl;
|
_linePrefix << message << endl;
|
||||||
return TestResult::Failure;
|
return TestResult::Failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user