diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-05-20 09:59:15 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-05-20 09:59:15 +0200 |
commit | 96464f8563720f09648876d7f268db6059615a19 (patch) | |
tree | dadfa146363e989b4f87c1539ba98ec1c46693a4 /test/geo_parametrizedline.cpp | |
parent | 501bc602ece7b6081e431e0c1b69bcabd217ba08 (diff) |
clean several other assertion checking tests
Diffstat (limited to 'test/geo_parametrizedline.cpp')
-rw-r--r-- | test/geo_parametrizedline.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/geo_parametrizedline.cpp b/test/geo_parametrizedline.cpp index 460455eec..6560ffcff 100644 --- a/test/geo_parametrizedline.cpp +++ b/test/geo_parametrizedline.cpp @@ -90,8 +90,9 @@ template<typename Scalar> void parametrizedline_alignment() VERIFY_IS_APPROX(p1->direction(), p2->direction()); VERIFY_IS_APPROX(p1->direction(), p3->direction()); - #ifdef EIGEN_VECTORIZE - VERIFY_RAISES_ASSERT((::new(reinterpret_cast<void*>(array3u)) Line4a)); + #if defined(EIGEN_VECTORIZE) && !defined(EIGEN_DONT_ALIGN_STATICALLY) + if(internal::packet_traits<Scalar>::Vectorizable) + VERIFY_RAISES_ASSERT((::new(reinterpret_cast<void*>(array3u)) Line4a)); #endif } @@ -100,6 +101,7 @@ void test_geo_parametrizedline() for(int i = 0; i < g_repeat; i++) { CALL_SUBTEST_1( parametrizedline(ParametrizedLine<float,2>()) ); CALL_SUBTEST_2( parametrizedline(ParametrizedLine<float,3>()) ); + CALL_SUBTEST_2( parametrizedline_alignment<float>() ); CALL_SUBTEST_3( parametrizedline(ParametrizedLine<double,4>()) ); CALL_SUBTEST_3( parametrizedline_alignment<double>() ); CALL_SUBTEST_4( parametrizedline(ParametrizedLine<std::complex<double>,5>()) ); |