diff --git a/test/util/select_most_precise.cpp b/test/util/select_most_precise.cpp index ec93b5f25..3ec2dec73 100644 --- a/test/util/select_most_precise.cpp +++ b/test/util/select_most_precise.cpp @@ -27,11 +27,11 @@ void test() bool is_same = boost::is_same::type::value; BOOST_CHECK_MESSAGE(is_same, - "The most precise of types " + "The most precise of types " << "T1: {" << typeid(T1).name() << " | s: " << sizeof(T1) << "}" << - " and " + " and " << "T2: {" << typeid(T2).name() << " | s: " << sizeof(T2) << "}" << - " does not match " + " does not match " << "ExpectedType: {" << typeid(ExpectedType).name() << " | s: " << sizeof(ExpectedType) << "}"); } @@ -56,11 +56,13 @@ int test_main(int, char* []) test(); test(); -#ifndef _MSC_VER - // This cannot be done for MSVC because double/long double is the same - test(); - test(); -#endif + if ( sizeof(long double) > sizeof(double) ) + { + // This cannot be done for MSVC because double/long double is the same + // This is also true for Android + test(); + test(); + } // with any other non-integer/float class test();