Raise SIGTRAP on non-Windows

This commit is contained in:
Tillmann Karras 2016-07-31 19:03:52 +01:00
parent 306e070ab5
commit dacaeadb6a

View file

@ -7,6 +7,7 @@
#include <cinttypes> #include <cinttypes>
#include <cstring> #include <cstring>
#include <functional> #include <functional>
#include <signal.h>
#include <catch.hpp> #include <catch.hpp>
#include <frontend/ir/ir.h> #include <frontend/ir/ir.h>
@ -236,6 +237,8 @@ void FuzzJitArm(const size_t instruction_count, const size_t instructions_to_exe
#ifdef _MSC_VER #ifdef _MSC_VER
__debugbreak(); __debugbreak();
#else
raise(SIGTRAP);
#endif #endif
FAIL(); FAIL();
} }