A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix tesh files of gras-rpc-sg and gras-synchro-sg
[simgrid.git]
/
examples
/
simdag
/
dot
/
dot_test.c
diff --git
a/examples/simdag/dot/dot_test.c
b/examples/simdag/dot/dot_test.c
index
319be24
..
3edb40d
100644
(file)
--- 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);
/* 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]);
/* 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]);
/* 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
/* Display all the tasks */
INFO0
@@
-124,7
+126,5
@@
int main(int argc, char **argv)
/* exit */
SD_exit();
/* exit */
SD_exit();
-
- TRACE_end();
return 0;
}
return 0;
}