aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2014-08-20 16:39:25 +0200
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2014-08-20 16:39:25 +0200
commiteeadc06e838a737492625cc3e4d5d5555bb40ff7 (patch)
tree05a89df0d4a056fd818c76157a8a7300e0550103 /test/main.h
parent4403800e11dd8567c630705f4f3c56f0dc214458 (diff)
EIGEN_EXCEPTIONS was not defined in test/main.h, therefore all VERIFY_RAISES_ASSERT tests were not enabled
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/main.h b/test/main.h
index 3295dcb71..376232cf2 100644
--- a/test/main.h
+++ b/test/main.h
@@ -76,6 +76,10 @@ namespace Eigen
#define EIGEN_DEFAULT_IO_FORMAT IOFormat(4, 0, " ", "\n", "", "", "", "")
+#if (defined(_CPPUNWIND) || defined(__EXCEPTIONS)) && !defined(__CUDA_ARCH__)
+ #define EIGEN_EXCEPTIONS
+#endif
+
#ifndef EIGEN_NO_ASSERTION_CHECKING
namespace Eigen
@@ -172,7 +176,7 @@ namespace Eigen
#ifndef VERIFY_RAISES_ASSERT
#define VERIFY_RAISES_ASSERT(a) \
- std::cout << "Can't VERIFY_RAISES_ASSERT( " #a " ) with exceptions disabled";
+ std::cout << "Can't VERIFY_RAISES_ASSERT( " #a " ) with exceptions disabled\n";
#endif
#if !defined(__CUDACC__)