mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Running gas tests only on tests having expectations.
This commit is contained in:
parent
6d51dfb617
commit
5ea97a5d43
@ -324,10 +324,12 @@ bool SemanticTest::checkGasCostExpectation(TestFunctionCall& io_test, bool _comp
|
||||
string setting =
|
||||
(_compileViaYul ? "ir"s : "legacy"s) +
|
||||
(m_optimiserSettings == OptimiserSettings::full() ? "Optimized" : "");
|
||||
|
||||
if (io_test.call().expectations.gasUsed.count(setting) == 0)
|
||||
return true;
|
||||
|
||||
io_test.setGasCost(setting, m_gasUsed);
|
||||
return
|
||||
io_test.call().expectations.gasUsed.count(setting) > 0 &&
|
||||
m_gasUsed == io_test.call().expectations.gasUsed.at(setting);
|
||||
return m_gasUsed == io_test.call().expectations.gasUsed.at(setting);
|
||||
}
|
||||
|
||||
void SemanticTest::printSource(ostream& _stream, string const& _linePrefix, bool _formatted) const
|
||||
|
Loading…
Reference in New Issue
Block a user