mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow test cases to indicate fatal errors.
This commit is contained in:
+11
-2
@@ -106,8 +106,17 @@ int registerTests(
|
||||
stringstream errorStream;
|
||||
auto testCase = _testCaseCreator(config);
|
||||
if (testCase->validateSettings(dev::test::Options::get().evmVersion()))
|
||||
if (!testCase->run(errorStream))
|
||||
BOOST_ERROR("Test expectation mismatch.\n" + errorStream.str());
|
||||
switch (testCase->run(errorStream))
|
||||
{
|
||||
case TestCase::TestResult::Success:
|
||||
break;
|
||||
case TestCase::TestResult::Failure:
|
||||
BOOST_ERROR("Test expectation mismatch.\n" + errorStream.str());
|
||||
break;
|
||||
case TestCase::TestResult::FatalError:
|
||||
BOOST_ERROR("Fatal error during test.\n" + errorStream.str());
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (boost::exception const& _e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user