tests/FuzzArm: Only call raise(SIGTRAP) when __unix__ is defined

This commit is contained in:
MerryMage 2016-08-05 16:04:16 +01:00
parent d80dcc5367
commit 6f6f60c61b

View file

@ -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();