From 6318d53b41641a6048a0311c584be7bcb32b3854 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 19 Jun 2015 16:38:26 +0200 Subject: Factorize VERIFY_EVALUATION_COUNT in unit tests --- test/cholesky.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'test/cholesky.cpp') diff --git a/test/cholesky.cpp b/test/cholesky.cpp index 16db380f6..d652af5bf 100644 --- a/test/cholesky.cpp +++ b/test/cholesky.cpp @@ -11,21 +11,12 @@ #define EIGEN_NO_ASSERTION_CHECKING #endif -static int nb_temporaries; - -#define EIGEN_DENSE_STORAGE_CTOR_PLUGIN { if(size!=0) nb_temporaries++; } +#define TEST_ENABLE_TEMPORARY_TRACKING #include "main.h" #include #include -#define VERIFY_EVALUATION_COUNT(XPR,N) {\ - nb_temporaries = 0; \ - XPR; \ - if(nb_temporaries!=N) std::cerr << "nb_temporaries == " << nb_temporaries << "\n"; \ - VERIFY( (#XPR) && nb_temporaries==N ); \ - } - template class CholType> void test_chol_update(const MatrixType& symm) { typedef typename MatrixType::Scalar Scalar; -- cgit v1.2.3