Bläddra i källkod

ENH: ctkBackTraceTest should be run only in Debug Mode

In release mode, this test is failed without good reason.
Moreover, everything leads to believe that this test may only be excpected to work in debug mode because of the message error produced during the release mode.
mayeul 9 år sedan
förälder
incheckning
74078e348c
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      Libs/Core/Testing/Cpp/CMakeLists.txt

+ 3 - 1
Libs/Core/Testing/Cpp/CMakeLists.txt

@@ -137,7 +137,9 @@ SIMPLE_TEST( ctkAbstractLibraryFactoryTest1 $<TARGET_FILE:CTKDummyPlugin> )
 SIMPLE_TEST( ctkAbstractObjectFactoryTest1 )
 SIMPLE_TEST( ctkAbstractPluginFactoryTest1 $<TARGET_FILE:CTKDummyPlugin> )
 SIMPLE_TEST( ctkAbstractQObjectFactoryTest1 )
-SIMPLE_TEST( ctkBackTraceTest )
+if(CMAKE_BUILD_TYPE MATCHES "Debug")
+  SIMPLE_TEST( ctkBackTraceTest )
+endif()
 if(HAVE_BFD)
   SIMPLE_TEST( ctkBinaryFileDescriptorTest1 $<TARGET_FILE:ctkBinaryFileDescriptorTestHelper> )
 endif()