Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Adapt tests to the fact that we can now detect that there was a timeout during commun...
[simgrid.git] / examples / msg / masterslave / masterslave_failure.c
index 53d1116..dae8413 100644 (file)
@@ -86,6 +86,11 @@ int master(int argc, char *argv[])
         ("Mmh. Something went wrong with '%s'. Nevermind. Let's keep going!",
          slaves[i % slaves_count]->name);
       MSG_task_destroy(task);
+    } else if (a == MSG_TIMEOUT_FAILURE) {
+      INFO1
+        ("Mmh. Got timeouted while speaking to '%s'. Nevermind. Let's keep going!",
+         slaves[i % slaves_count]->name);
+      MSG_task_destroy(task);
     } else {
       INFO0("Hey ?! What's up ? ");
       xbt_assert0(0, "Unexpected behavior");
@@ -107,6 +112,11 @@ int master(int argc, char *argv[])
       INFO1("Mmh. Can't reach '%s'! Nevermind. Let's keep going!",
             slaves[i]->name);
       MSG_task_destroy(task);
+    } else if (a == MSG_TIMEOUT_FAILURE) {
+      INFO1
+        ("Mmh. Got timeouted while speaking to '%s'. Nevermind. Let's keep going!",
+         slaves[i % slaves_count]->name);
+      MSG_task_destroy(task);
     } else {
       INFO0("Hey ?! What's up ? ");
       xbt_assert2(0, "Unexpected behavior with '%s': %d", slaves[i]->name, a);