Index: test-suite/trunk/External/CUDA/CMakeLists.txt =================================================================== --- test-suite/trunk/External/CUDA/CMakeLists.txt +++ test-suite/trunk/External/CUDA/CMakeLists.txt @@ -282,6 +282,9 @@ COMMENT "Build all CUDA tests.") endmacro(create_cuda_tests) +# We always want asserts() to run. +list(APPEND CPPFLAGS "-UNDEBUG") + if(TEST_SUITE_CUDA_ROOT) create_cuda_tests() endif() Index: test-suite/trunk/External/CUDA/assert.cu =================================================================== --- test-suite/trunk/External/CUDA/assert.cu +++ test-suite/trunk/External/CUDA/assert.cu @@ -1,5 +1,3 @@ -#undef NDEBUG - #include #include