X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/70df654bdb90d3fe386b8cc29740d4cd990d2a0d..e2003d622b6b961020a60265f2b03b427afaeb4b:/examples/msg/exception/exception.tesh diff --git a/examples/msg/exception/exception.tesh b/examples/msg/exception/exception.tesh index cf8cdb2819..ab67769b07 100644 --- a/examples/msg/exception/exception.tesh +++ b/examples/msg/exception/exception.tesh @@ -3,4 +3,34 @@ p Testing the remote exception raising feature ! output sort -$ $SG_TEST_EXENV exception/exception ${srcdir:=.}/../platforms/platform.xml ${srcdir:=.}/exception/deployment_exception.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" +$ $SG_TEST_EXENV exception/exception ${srcdir:=.}/../platforms/platform.xml ${srcdir:=.}/exception/deployment_exception.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" "--cfg=exception/cutpath:1" +> [ 0.000000] (1:terrorist@Jacquelin) Let's create a victim. +> [ 0.000000] (2:victim@Jacquelin) Let's work. +> [ 0.000000] (1:terrorist@Jacquelin) Going to sleep for 1 second +> [ 1.000000] (1:terrorist@Jacquelin) Send a first exception (host failure) +> [ 1.000000] (1:terrorist@Jacquelin) Sweet, let's prepare a second trick! +> [ 1.000000] (1:terrorist@Jacquelin) Going to sleep for 2 seconds +> [ 1.000000] (2:victim@Jacquelin) The MSG_task_execute caught the exception for me and returned 8) +> [ 1.000000] (2:victim@Jacquelin) Let's get suspended. +> [ 3.000000] (1:terrorist@Jacquelin) Send a second exception (host failure) +> [ 3.000000] (1:terrorist@Jacquelin) Sweet, let's prepare a third trick! +> [ 3.000000] (1:terrorist@Jacquelin) Going to sleep for 3 seconds +> [ 3.000000] (2:victim@Jacquelin) The received exception resumed my suspension. Good. Here is it: ----------------------->8---- +> ** SimGrid: UNCAUGHT EXCEPTION received on exception/exception(2): category: action canceled; value: 0 +> ** Canceled +> ** Thrown by () on process 0 +> [ 0.000000] (0:@) Configuration change: Set 'exception/cutpath' to '1' +> [ 3.000000] (2:victim@Jacquelin) Canceled +> +> ** In SIMIX_execution_finish() at smx_host.c +> ** In SIMIX_run() at smx_global.c +> ** In MSG_main() at msg_global.c +> ** In main() at exception.c +> [ 3.000000] (2:victim@Jacquelin) (end of the second exception) ----8<------------------------ +> [ 3.000000] (2:victim@Jacquelin) Let's sleep for 10 seconds. +> [ 6.000000] (1:terrorist@Jacquelin) Send a third exception (cancellation) +> [ 6.000000] (1:terrorist@Jacquelin) OK, goodbye now. +> [ 6.000000] (2:victim@Jacquelin) The MSG_process_sleep caught the exception for me and returned 8) +> [ 6.000000] (2:victim@Jacquelin) Let's try a last time to do something on something +> [ 16.000000] (2:victim@Jacquelin) That's enough now. I quit. +> [ 16.000000] (0:@) Simulation time 16