Raise SIGTRAP on non-Windows
This commit is contained in:
parent
306e070ab5
commit
dacaeadb6a
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue