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 <cstring>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
#include <signal.h>
|
|
||||||
#include <catch.hpp>
|
#include <catch.hpp>
|
||||||
|
|
||||||
#include "common/bit_util.h"
|
#include "common/bit_util.h"
|
||||||
|
@ -23,6 +22,10 @@
|
||||||
#include "skyeye_interpreter/dyncom/arm_dyncom_interpreter.h"
|
#include "skyeye_interpreter/dyncom/arm_dyncom_interpreter.h"
|
||||||
#include "skyeye_interpreter/skyeye_common/armstate.h"
|
#include "skyeye_interpreter/skyeye_common/armstate.h"
|
||||||
|
|
||||||
|
#ifdef __unix__
|
||||||
|
#include <signal.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
struct WriteRecord {
|
struct WriteRecord {
|
||||||
size_t size;
|
size_t size;
|
||||||
u32 address;
|
u32 address;
|
||||||
|
@ -254,7 +257,8 @@ void FuzzJitArm(const size_t instruction_count, const size_t instructions_to_exe
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
__debugbreak();
|
__debugbreak();
|
||||||
#else
|
#endif
|
||||||
|
#ifdef __unix__
|
||||||
raise(SIGTRAP);
|
raise(SIGTRAP);
|
||||||
#endif
|
#endif
|
||||||
FAIL();
|
FAIL();
|
||||||
|
|
Loading…
Reference in a new issue