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_transformations.cpp | |
parent | 501bc602ece7b6081e431e0c1b69bcabd217ba08 (diff) |
clean several other assertion checking tests
Diffstat (limited to 'test/geo_transformations.cpp')
-rw-r--r-- | test/geo_transformations.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/geo_transformations.cpp b/test/geo_transformations.cpp index 67396498d..b9e9f8c8e 100644 --- a/test/geo_transformations.cpp +++ b/test/geo_transformations.cpp @@ -442,8 +442,9 @@ template<typename Scalar> void transform_alignment() VERIFY_IS_APPROX( (*p1) * (*p1), (*p2)*(*p3)); - #ifdef EIGEN_VECTORIZE - VERIFY_RAISES_ASSERT((::new(reinterpret_cast<void*>(array3u)) Projective3a)); + #if defined(EIGEN_VECTORIZE) && !defined(EIGEN_DONT_ALIGN_STATICALLY) + if(internal::packet_traits<Scalar>::Vectorizable) + VERIFY_RAISES_ASSERT((::new(reinterpret_cast<void*>(array3u)) Projective3a)); #endif } @@ -455,7 +456,8 @@ void test_geo_transformations() CALL_SUBTEST_2(( transformations<float,AffineCompact,AutoAlign>() )); CALL_SUBTEST_2(( non_projective_only<float,AffineCompact,AutoAlign>() )); - + CALL_SUBTEST_2(( transform_alignment<float>() )); + CALL_SUBTEST_3(( transformations<double,Projective,AutoAlign>() )); CALL_SUBTEST_3(( transformations<double,Projective,DontAlign>() )); CALL_SUBTEST_3(( transform_alignment<double>() )); |