Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to improve coverage reports for MC tests.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 30 Jan 2019 22:36:47 +0000 (23:36 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 31 Jan 2019 08:48:21 +0000 (09:48 +0100)
src/mc/remote/Client.cpp

index ada56e0..d357a29 100644 (file)
@@ -11,6 +11,7 @@
 #include <sys/socket.h>
 #include <sys/types.h>
 
 #include <sys/socket.h>
 #include <sys/types.h>
 
+#include <xbt/coverage.h>
 #include <xbt/log.h>
 #include <xbt/mmalloc.h>
 #include <xbt/sysdep.h>
 #include <xbt/log.h>
 #include <xbt/mmalloc.h>
 #include <xbt/sysdep.h>
@@ -184,6 +185,7 @@ void Client::mainLoop()
     simgrid::mc::wait_for_requests();
     xbt_assert(channel_.send(MC_MESSAGE_WAITING) == 0, "Could not send WAITING message to model-checker");
     this->handleMessages();
     simgrid::mc::wait_for_requests();
     xbt_assert(channel_.send(MC_MESSAGE_WAITING) == 0, "Could not send WAITING message to model-checker");
     this->handleMessages();
+    coverage_checkpoint();
   }
 }
 
   }
 }