Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ensure the task is correctly destroyed when the host turns off during execute.
[simgrid.git] / teshsuite / simix / CMakeLists.txt
index af6faa8..26919a1 100644 (file)
@@ -28,6 +28,9 @@ ENDIF()
 
 if (NOT enable_memcheck AND NOT enable_address_sanitizer)
   ADD_TESH_FACTORIES(stack-overflow   "ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simix/stack-overflow --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simix/stack-overflow stack-overflow.tesh)
+  if (release AND (WIN32 OR CMAKE_SYSTEM_NAME MATCHES "Darwin"))
+    SET_TESH_PROPERTIES(stack-overflow "ucontext;raw;boost" WILL_FAIL true)
+  endif()
 endif()
 if (NOT enable_memcheck)
   ADD_TESH_FACTORIES(generic-simcalls "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simix/generic-simcalls --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simix/generic-simcalls generic-simcalls.tesh)
@@ -36,9 +39,7 @@ endif()
 foreach (factory raw thread boost ucontext)
   string (TOUPPER have_${factory}_contexts VARNAME)
   if (${factory} STREQUAL "thread" OR ${VARNAME})
-    if (release AND (WIN32 OR CMAKE_SYSTEM_NAME MATCHES "Darwin"))
-      SET_TESTS_PROPERTIES(stack-overflow-${factory} PROPERTIES WILL_FAIL true)
-    endif()
+    # Cannot use ADD_TESH() here since ${factory} is part of the tesh filename
     ADD_TESH(tesh-simix-factory-${factory} --cfg contexts/factory:${factory} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simix/check-defaults --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simix/check-defaults factory_${factory}.tesh)
   endif()
 endforeach()