Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix the tesh of one last command
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 3 Nov 2014 19:54:19 +0000 (20:54 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 3 Nov 2014 19:54:22 +0000 (20:54 +0100)
Thanks adsein for all your great work on these points.

teshsuite/java/sleep_host_off/SleepHostOff.java
teshsuite/java/sleep_host_off/sleep_host_off.tesh

index d99d4af..1d60cad 100644 (file)
@@ -38,8 +38,7 @@ public class SleepHostOff extends Process{
           try {
             Process.sleep(10);
           } catch (HostFailureException e) {
-            Msg.info("catch HostException");
-            e.printStackTrace();
+            Msg.info("catch HostException: "+e.getLocalizedMessage());
             break; //Break is needed to finalize the endless loop 
           }
         }
index a1d464e..ba1c11c 100644 (file)
@@ -1,2 +1,13 @@
 $ java -classpath ${classpath:=.} sleep_host_off.Main ${srcdir:=.}/../../examples/platforms/small_platform.xml ${srcdir:=.}/sleep_host_off/sleep_host_off_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [  0.000000] (0:@) Using regular java threads. Coroutines could speed your simulation up.
+> [  0.000000] (1:sleep_host_off.SleepHostOff@Tremblay) **** **** **** ***** ***** Test Sleep ***** ***** **** **** ****
+> [  0.000000] (1:sleep_host_off.SleepHostOff@Tremblay) Test sleep: Create a process on Jupiter, the process simply make periodic sleep, turn off Jupiter
+> [  0.000000] (2:sleep@Jupiter) I'm not dead
+> [  0.010000] (2:sleep@Jupiter) I'm not dead
+> [  0.020000] (1:sleep_host_off.SleepHostOff@Tremblay) Stop Jupiter
+> [  0.020000] (2:sleep@Jupiter) I'm not dead
+> [  0.020000] (1:sleep_host_off.SleepHostOff@Tremblay) Jupiter has been stopped
+> [  0.020000] (2:sleep@Jupiter) catch HostException: Host Failure (null)
+> [  0.320000] (1:sleep_host_off.SleepHostOff@Tremblay) Test sleep seems ok, cool !(number of Process : 1, it should be 1 (i.e. the Test one))
 >
+> [  0.320000] (0:@) MSG_main finished; Cleaning up the simulation...
\ No newline at end of file