From d962fe6a9980065456718b1ab41750dcb76f8971 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 7 Apr 2016 20:28:32 -0700 Subject: [PATCH] Renamed float16 into cxx11_float16 since the test relies on c++11 features --- unsupported/test/CMakeLists.txt | 3 +-- unsupported/test/{float16.cpp => cxx11_float16.cpp} | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) rename unsupported/test/{float16.cpp => cxx11_float16.cpp} (98%) diff --git a/unsupported/test/CMakeLists.txt b/unsupported/test/CMakeLists.txt index 96652bfcf..c6a92fe73 100644 --- a/unsupported/test/CMakeLists.txt +++ b/unsupported/test/CMakeLists.txt @@ -110,13 +110,12 @@ ei_add_test(minres) ei_add_test(levenberg_marquardt) ei_add_test(kronecker_product) -ei_add_test(float16) - if(EIGEN_TEST_CXX11) # It should be safe to always run these tests as there is some fallback code for # older compiler that don't support cxx11. set(CMAKE_CXX_STANDARD 11) + ei_add_test(cxx11_float16) ei_add_test(cxx11_meta) ei_add_test(cxx11_tensor_simple) # ei_add_test(cxx11_tensor_symmetry) diff --git a/unsupported/test/float16.cpp b/unsupported/test/cxx11_float16.cpp similarity index 98% rename from unsupported/test/float16.cpp rename to unsupported/test/cxx11_float16.cpp index 13f3ddaca..44ffa67b3 100644 --- a/unsupported/test/float16.cpp +++ b/unsupported/test/cxx11_float16.cpp @@ -7,7 +7,7 @@ #define EIGEN_TEST_NO_LONGDOUBLE #define EIGEN_TEST_NO_COMPLEX -#define EIGEN_TEST_FUNC float16 +#define EIGEN_TEST_FUNC cxx11_float16 #include "main.h" #include @@ -138,7 +138,7 @@ void test_functions() VERIFY_IS_APPROX(float(numext::log(half(10.0f))), 2.30273f); } -void test_float16() +void test_cxx11_float16() { CALL_SUBTEST(test_conversion()); CALL_SUBTEST(test_arithmetic());