Improve failure reporting and add more assertions
Adds BV_NOTHROW, BV_THROWS, and BV_THROWS_ANY. Improves failure reporting.
This commit is contained in:
@@ -73,11 +73,15 @@ namespace bitshift::validate
|
||||
try {
|
||||
tc.run();
|
||||
}
|
||||
catch (ignore const&) {
|
||||
catch (ignored const&) {
|
||||
execute_teardown(r);
|
||||
return kExecuteIgnored;
|
||||
}
|
||||
catch (assertion_failure const& failure) {
|
||||
catch (passed const&) {
|
||||
// No-op.
|
||||
//
|
||||
}
|
||||
catch (failure const& failure) {
|
||||
failure.report(r);
|
||||
execute_teardown(r);
|
||||
return kExecuteFailed;
|
||||
|
||||
Reference in New Issue
Block a user