nicer way to crash
This commit is contained in:
parent
671457cb11
commit
4ef19da2dd
@ -249,8 +249,7 @@ DEEPSTATE_INLINE static void DeepState_Assert(int expr) {
|
|||||||
|
|
||||||
/* Used to make DeepState really crash for fuzzers, on any platform. */
|
/* Used to make DeepState really crash for fuzzers, on any platform. */
|
||||||
DEEPSTATE_INLINE static void DeepState_HardCrash() {
|
DEEPSTATE_INLINE static void DeepState_HardCrash() {
|
||||||
char *p = 0;
|
raise(SIGABRT);
|
||||||
(*p) = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Asserts that `expr` must hold. If it does not, then the test fails, but
|
/* Asserts that `expr` must hold. If it does not, then the test fails, but
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user