tests/FuzzArm: Only call raise(SIGTRAP) when __unix__ is defined
This commit is contained in:
parent
d80dcc5367
commit
6f6f60c61b
1 changed files with 6 additions and 2 deletions
|
@ -8,7 +8,6 @@
|
|||
#include <cstring>
|
||||
#include <functional>
|
||||
|
||||
#include <signal.h>
|
||||
#include <catch.hpp>
|
||||
|
||||
#include "common/bit_util.h"
|
||||
|
@ -23,6 +22,10 @@
|
|||
#include "skyeye_interpreter/dyncom/arm_dyncom_interpreter.h"
|
||||
#include "skyeye_interpreter/skyeye_common/armstate.h"
|
||||
|
||||
#ifdef __unix__
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
||||
struct WriteRecord {
|
||||
size_t size;
|
||||
u32 address;
|
||||
|
@ -254,7 +257,8 @@ void FuzzJitArm(const size_t instruction_count, const size_t instructions_to_exe
|
|||
|
||||
#ifdef _MSC_VER
|
||||
__debugbreak();
|
||||
#else
|
||||
#endif
|
||||
#ifdef __unix__
|
||||
raise(SIGTRAP);
|
||||
#endif
|
||||
FAIL();
|
||||
|
|
Loading…
Reference in a new issue