Index: tests/exception_test/exception_test.c |
diff --git a/tests/exception_test/exception_test.c b/tests/exception_test/exception_test.c |
index b00d3a40a7e51a235b88777619ec269947818276..01b887b266f2f40672b539627d482985d718f372 100644 |
--- a/tests/exception_test/exception_test.c |
+++ b/tests/exception_test/exception_test.c |
@@ -314,7 +314,7 @@ void test_catching_various_exception_types(void) { |
exit(1); |
} |
-#if defined(__i386__) || defined(__x86_64__) |
+#if !NONSFI_MODE && (defined(__i386__) || defined(__x86_64__)) |
printf("Testing hlt...\n"); |
if (!setjmp(g_jmp_buf)) { |
__asm__("hlt"); |
@@ -340,7 +340,7 @@ void test_catching_various_exception_types(void) { |
} |
-#if defined(__i386__) || defined(__x86_64__) |
+#if !NONSFI_MODE && (defined(__i386__) || defined(__x86_64__)) |
int get_x86_direction_flag(void); |
@@ -404,7 +404,7 @@ int TestMain(void) { |
RUN_TEST(test_exceptions_on_non_main_thread); |
RUN_TEST(test_catching_various_exception_types); |
-#if defined(__i386__) || defined(__x86_64__) |
+#if !NONSFI_MODE && (defined(__i386__) || defined(__x86_64__)) |
RUN_TEST(test_get_x86_direction_flag); |
RUN_TEST(test_unsetting_x86_direction_flag); |
#endif |