Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable liveness model-checking tests outside Linux.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 9 Jun 2023 14:33:05 +0000 (16:33 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 9 Jun 2023 14:40:11 +0000 (16:40 +0200)
It seems to fall in an infinite loop under FreeBSD for example.

[ci-skip]

examples/cpp/CMakeLists.txt

index 709bebe..eb3750d 100644 (file)
@@ -57,8 +57,8 @@ if(SIMGRID_HAVE_STATEFUL_MC)
       ${CMAKE_HOME_DIRECTORY}/examples/cpp/synchro-mutex/s4u-mc-synchro-mutex-stateful.tesh)
 
   # Model-checking liveness
-  if(HAVE_UCONTEXT_CONTEXTS AND SIMGRID_PROCESSOR_x86_64)
-    # liveness model-checking works only on 64bits (for now ...)
+  if(HAVE_UCONTEXT_CONTEXTS AND SIMGRID_PROCESSOR_x86_64 AND "${CMAKE_SYSTEM}" MATCHES "Linux")
+    # liveness model-checking works only on 64bits (for now ...), but not under FreeBSD
     set(_mc-bugged1-liveness_factories "ucontext")
     add_dependencies(tests-mc s4u-mc-bugged1-liveness)
     set(_mc-bugged2-liveness_factories "ucontext")