From 63017bd5109aadc1e0a1aaf66d8fb7690f30642f Mon Sep 17 00:00:00 2001 From: Djordje Mijovic Date: Wed, 10 Mar 2021 13:59:20 +0100 Subject: [PATCH] Not showing gas used if it is equal to m_gas(in case of out of gas failures). --- test/libsolidity/SemanticTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/libsolidity/SemanticTest.cpp b/test/libsolidity/SemanticTest.cpp index 17f62498c..0afeaa577 100644 --- a/test/libsolidity/SemanticTest.cpp +++ b/test/libsolidity/SemanticTest.cpp @@ -349,7 +349,7 @@ bool SemanticTest::checkGasCostExpectation(TestFunctionCall& io_test, bool _comp if ( !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 ) )