Преглед изворни кода

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 година
родитељ
комит
74078e348c
1 измењених фајлова са 3 додато и 1 уклоњено
  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()