fix abort on fail for asserts in DeepState harness
This commit is contained in:
@@ -920,6 +920,9 @@ void __assert_fail(const char * assertion, const char * file,
|
||||
DeepState_LogFormat(DeepState_LogFatal,
|
||||
"%s(%u): Assertion %s failed in function %s",
|
||||
file, line, assertion, function);
|
||||
if (FLAGS_abort_on_fail) {
|
||||
assert(0); // Terminate the testing in a way AFL/etc. can see as a crash
|
||||
}
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user