Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
74078e348c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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()