Not showing gas used if it is equal to m_gas(in case of out of gas failures).

This commit is contained in:
Djordje Mijovic 2021-03-10 13:59:20 +01:00
parent b3202f6b39
commit 63017bd510

View File

@ -349,7 +349,7 @@ bool SemanticTest::checkGasCostExpectation(TestFunctionCall& io_test, bool _comp
if ( if (
!m_enforceGasCost || !m_enforceGasCost ||
( (
(setting == "ir" || m_gasUsed < m_enforceGasCostMinValue) && (setting == "ir" || m_gasUsed < m_enforceGasCostMinValue || m_gasUsed >= m_gas) &&
io_test.call().expectations.gasUsed.count(setting) == 0 io_test.call().expectations.gasUsed.count(setting) == 0
) )
) )