diff --git a/tests/__aeabi_read_tp_test.cpp b/tests/__aeabi_read_tp_test.cpp index ab96af9a9..697465879 100644 --- a/tests/__aeabi_read_tp_test.cpp +++ b/tests/__aeabi_read_tp_test.cpp @@ -32,7 +32,12 @@ #if defined(__arm__) extern "C" void* __aeabi_read_tp(); -TEST(aeabi, read_tp) { - ASSERT_EQ(__aeabi_read_tp(), static_cast(__get_tls())); -} #endif + +TEST(aeabi, read_tp) { +#if defined(__arm__) + ASSERT_EQ(__aeabi_read_tp(), static_cast(__get_tls())); +#else + GTEST_LOG_(INFO) << "__aeabi_read_tp is only available on arm32.\n"; +#endif +}