TEST(math, __isfinite) { #if defined(__GLIBC__) #define __isfinite __finite #endif ASSERT_TRUE(__isfinite(123.0)); ASSERT_FALSE(__isfinite(HUGE_VAL)); }
TEST(math, __isfinite) { #if defined(__BIONIC__) ASSERT_TRUE(__isfinite(123.0)); ASSERT_FALSE(__isfinite(HUGE_VAL)); #else // __BIONIC__ GTEST_LOG_(INFO) << "This test does nothing.\n"; #endif // __BIONIC__ }