X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b70e05934867d908bfc8ed9bd11aae00f63d0f2..2ddaad87cbb9584159fd9ea054a4dd0dbf1224b2:/examples/simdag/dax/dax_test.c diff --git a/examples/simdag/dax/dax_test.c b/examples/simdag/dax/dax_test.c index 2a873d1288..f27ba96651 100644 --- a/examples/simdag/dax/dax_test.c +++ b/examples/simdag/dax/dax_test.c @@ -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 */