Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
create the test before setting its properties
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 8 Mar 2016 23:51:40 +0000 (00:51 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 8 Mar 2016 23:51:49 +0000 (00:51 +0100)
otherwise it fails on travis and appveyor, even if it works pretty
well on my machine.

teshsuite/simix/stack_overflow/CMakeLists.txt

index fa7c409..a3e4baf 100644 (file)
@@ -1,6 +1,8 @@
 add_executable       (stack_overflow stack_overflow.c)
 target_link_libraries(stack_overflow simgrid)
 
 add_executable       (stack_overflow stack_overflow.c)
 target_link_libraries(stack_overflow simgrid)
 
+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)
+
 if(release AND (WIN32 OR CMAKE_SYSTEM_NAME MATCHES "Darwin"))
   foreach (factory raw thread ucontext)
     string (TOUPPER have_${factory}_contexts VARNAME)
 if(release AND (WIN32 OR CMAKE_SYSTEM_NAME MATCHES "Darwin"))
   foreach (factory raw thread ucontext)
     string (TOUPPER have_${factory}_contexts VARNAME)
@@ -10,8 +12,6 @@ if(release AND (WIN32 OR CMAKE_SYSTEM_NAME MATCHES "Darwin"))
   endforeach()
 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)
 set(xml_files      ${xml_files}      ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow.xml
                                      ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow_platform.xml  PARENT_SCOPE)
 set(tesh_files     ${tesh_files}     ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow.tesh          PARENT_SCOPE)
 set(xml_files      ${xml_files}      ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow.xml
                                      ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow_platform.xml  PARENT_SCOPE)