Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics in teshsuite/msg/host_on_off -- don't ask why
[simgrid.git] / teshsuite / msg / host_on_off / host_on_off_wait.c
index 5decb22..5c35cb9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2014. The SimGrid Team.
+/* Copyright (c) 2010-2015. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -25,10 +25,7 @@ int master(int argc, char *argv[])
   TRY {
     msg_host_t jupiter = MSG_host_by_name("Jupiter");
     XBT_INFO("Master waiting");
   TRY {
     msg_host_t jupiter = MSG_host_by_name("Jupiter");
     XBT_INFO("Master waiting");
-    if(MSG_process_sleep(1)) {
-      XBT_ERROR("Unexpected error while sleeping");
-      return 1;
-    }
+    MSG_process_sleep(1);
 
     XBT_INFO("Turning off the slave host");
     MSG_host_off(jupiter);
 
     XBT_INFO("Turning off the slave host");
     MSG_host_off(jupiter);