Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
set will fail property for stack overoflow on win and osx
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 8 Mar 2016 12:27:09 +0000 (13:27 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 8 Mar 2016 12:27:09 +0000 (13:27 +0100)
teshsuite/simix/stack_overflow/CMakeLists.txt
tools/cmake/Tests.cmake

index edbbb81..fa7c409 100644 (file)
@@ -1,6 +1,15 @@
 add_executable       (stack_overflow stack_overflow.c)
 target_link_libraries(stack_overflow simgrid)
 
+if(release AND (WIN32 OR CMAKE_SYSTEM_NAME MATCHES "Darwin"))
+  foreach (factory raw thread ucontext)
+    string (TOUPPER have_${factory}_contexts VARNAME)
+    if (${VARNAME})
+      SET_TESTS_PROPERTIES(stack-overflow-${factory} PROPERTIES WILL_FAIL true)
+    endif()
+  endforeach()
+endif()
+
 ADD_TESH_FACTORIES(stack-overflow "thread;ucontext;raw" --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simix/stack_overflow --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simix/stack_overflow stack_overflow.tesh)
 
 set(tesh_files     ${tesh_files}     ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow.tesh          PARENT_SCOPE)
index d158cac..f38f2ee 100644 (file)
@@ -83,25 +83,6 @@ IF(NOT enable_memcheck)
     ENDIF()
   ENDIF()
 
-  ###
-  ### Declare that we know that some tests are broken
-  ###
-  IF(release)
-    IF(WIN32 OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
-      # These tests are known to fail on Windows and Mac OS X
-      # (the expected error message is not shown).
-      IF(HAVE_THREAD_CONTEXTS)
-      SET_TESTS_PROPERTIES(stack-overflow-thread PROPERTIES WILL_FAIL true)
-      ENDIF()
-      IF(HAVE_UCONTEXT_CONTEXTS)
-        SET_TESTS_PROPERTIES(stack-overflow-ucontext PROPERTIES WILL_FAIL true)
-      ENDIF()
-      IF(HAVE_RAW_CONTEXTS)
-        SET_TESTS_PROPERTIES(stack-overflow-raw PROPERTIES WILL_FAIL true)
-      ENDIF()
-    ENDIF()
-  ENDIF()
-
   ## INTERFACES ##
   ### SIMDAG ###
   # BEGIN TESH TESTS