mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add more failtests
This commit is contained in:
@@ -17,12 +17,20 @@ ei_add_failtest("map_nonconst_ctor_on_const_ptr_0")
|
||||
ei_add_failtest("map_nonconst_ctor_on_const_ptr_1")
|
||||
ei_add_failtest("map_nonconst_ctor_on_const_ptr_2")
|
||||
ei_add_failtest("map_nonconst_ctor_on_const_ptr_3")
|
||||
ei_add_failtest("map_nonconst_ctor_on_const_ptr_4")
|
||||
|
||||
ei_add_failtest("map_on_const_type_actually_const_0")
|
||||
ei_add_failtest("map_on_const_type_actually_const_1")
|
||||
ei_add_failtest("block_on_const_type_actually_const_0")
|
||||
ei_add_failtest("block_on_const_type_actually_const_1")
|
||||
ei_add_failtest("transpose_on_const_type_actually_const")
|
||||
ei_add_failtest("diagonal_on_const_type_actually_const")
|
||||
|
||||
if (EIGEN_FAILTEST_FAILURE_COUNT)
|
||||
message(FATAL_ERROR "${EIGEN_FAILTEST_FAILURE_COUNT} out of ${EIGEN_FAILTEST_COUNT} failtests FAILED. "
|
||||
"Failtests succeed when they generate build errors. "
|
||||
"To debug these failures, manually compile these programs in ${CMAKE_CURRENT_SOURCE_DIR}.")
|
||||
message(FATAL_ERROR
|
||||
"${EIGEN_FAILTEST_FAILURE_COUNT} out of ${EIGEN_FAILTEST_COUNT} failtests FAILED. "
|
||||
"To debug these failures, manually compile these programs in ${CMAKE_CURRENT_SOURCE_DIR}, "
|
||||
"with and without #define EIGEN_SHOULD_FAIL_TO_BUILD.")
|
||||
else()
|
||||
message(STATUS "Failtest SUCCESS: all ${EIGEN_FAILTEST_COUNT} failtests passed.")
|
||||
message(STATUS "")
|
||||
|
||||
Reference in New Issue
Block a user