Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
modify the test to not die poorly anymore. Just gently exit with an
[simgrid.git] / examples / simdag / dax / dax_test.c
index 2a873d1..f27ba96 100644 (file)
@@ -58,9 +58,12 @@ int main(int argc, char **argv)
   SD_create_environment(argv[1]);
 
   /* load the DAX file */
-  if (!(dax = SD_daxload(argv[2]))){
+  dax = SD_daxload(argv[2]);
+  if (!dax){
+    XBT_ERROR("A problem occurred during DAX parsing (cycle or syntax). Do not continue this test");
     free(tracefilename);
-    xbt_die("A problem occurred during parsing. The simulation can't continue.");
+    SD_exit();
+    return -1;
   }
 
   /* Display all the tasks */