X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1887c10301602c6c3e24242d86e93beff6a899f2..66ff9a76c4a49245537195a63546caf5a9e3f2de:/examples/simdag/dot/dot_test.c diff --git a/examples/simdag/dot/dot_test.c b/examples/simdag/dot/dot_test.c index 319be2477e..3edb40d39e 100644 --- a/examples/simdag/dot/dot_test.c +++ b/examples/simdag/dot/dot_test.c @@ -25,8 +25,6 @@ int main(int argc, char **argv) /* initialisation of SD */ SD_init(&argc, argv); - TRACE_start (); - /* Check our arguments */ if (argc < 3) { INFO1("Usage: %s platform_file dot_file [trace_file]", argv[0]); @@ -50,6 +48,10 @@ int main(int argc, char **argv) /* load the DOT file */ dot = SD_dotload(argv[2]); + if(dot == NULL){ + INFO0("No dot load may be you have a cycle in your graph"); + return -1; + } /* Display all the tasks */ INFO0 @@ -124,7 +126,5 @@ int main(int argc, char **argv) /* exit */ SD_exit(); - - TRACE_end(); return 0; }