mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix gas mismatch in constructor not being counted as a failure
This commit is contained in:
parent
7334420423
commit
cf52827107
@ -407,7 +407,10 @@ TestCase::TestResult SemanticTest::runTest(
|
|||||||
if (m_transactionSuccessful == test.call().expectations.failure)
|
if (m_transactionSuccessful == test.call().expectations.failure)
|
||||||
success = false;
|
success = false;
|
||||||
if (success && !checkGasCostExpectation(test, _isYulRun))
|
if (success && !checkGasCostExpectation(test, _isYulRun))
|
||||||
|
{
|
||||||
|
success = false;
|
||||||
m_gasCostFailure = true;
|
m_gasCostFailure = true;
|
||||||
|
}
|
||||||
|
|
||||||
test.setFailure(!m_transactionSuccessful);
|
test.setFailure(!m_transactionSuccessful);
|
||||||
test.setRawBytes(bytes());
|
test.setRawBytes(bytes());
|
||||||
|
Loading…
Reference in New Issue
Block a user