From 6f6f60c61b2137780102c75841441f760d3cc3fc Mon Sep 17 00:00:00 2001 From: MerryMage Date: Fri, 5 Aug 2016 16:04:16 +0100 Subject: [PATCH] tests/FuzzArm: Only call raise(SIGTRAP) when __unix__ is defined --- tests/arm/fuzz_arm.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/arm/fuzz_arm.cpp b/tests/arm/fuzz_arm.cpp index 1435decd..94d03559 100644 --- a/tests/arm/fuzz_arm.cpp +++ b/tests/arm/fuzz_arm.cpp @@ -8,7 +8,6 @@ #include #include -#include #include #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 +#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();