Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
strenghten this test
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 26 Aug 2018 22:37:52 +0000 (00:37 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 26 Aug 2018 22:44:20 +0000 (00:44 +0200)
teshsuite/s4u/host_on_off_wait/host_on_off_wait.cpp

index e8617e0..b0fcb13 100644 (file)
@@ -25,7 +25,9 @@ static void worker()
     simgrid::s4u::this_actor::sleep_for(5);
   } catch (simgrid::HostFailureException& e) {
     XBT_INFO("The host has died ... as expected.");
     simgrid::s4u::this_actor::sleep_for(5);
   } catch (simgrid::HostFailureException& e) {
     XBT_INFO("The host has died ... as expected.");
+    return;
   }
   }
+  XBT_INFO("The host did not die! That's a bug!");
 }
 
 int main(int argc, char* argv[])
 }
 
 int main(int argc, char* argv[])