mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Relax expectations for complex nonlinear tests
This commit is contained in:
parent
f5f2bbb274
commit
955b97097c
@ -153,6 +153,19 @@ do \
|
|||||||
} \
|
} \
|
||||||
while(0)
|
while(0)
|
||||||
|
|
||||||
|
#define CHECK_SUCCESS_OR_WARNING(text, substring) \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
|
auto sourceAndError = parseAnalyseAndReturnError((text), true); \
|
||||||
|
auto const& errors = sourceAndError.second; \
|
||||||
|
if (!errors.empty()) \
|
||||||
|
{ \
|
||||||
|
auto message = searchErrors(errors, {{(Error::Type::Warning), (substring)}}); \
|
||||||
|
BOOST_CHECK_MESSAGE(message.empty(), message); \
|
||||||
|
} \
|
||||||
|
} \
|
||||||
|
while(0)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ BOOST_AUTO_TEST_CASE(division)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
CHECK_SUCCESS_NO_WARNINGS(text);
|
CHECK_SUCCESS_OR_WARNING(text, "might happen");
|
||||||
text = R"(
|
text = R"(
|
||||||
contract C {
|
contract C {
|
||||||
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
|
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
|
||||||
|
Loading…
Reference in New Issue
Block a user