From 6b70e05934867d908bfc8ed9bd11aae00f63d0f2 Mon Sep 17 00:00:00 2001 From: suter Date: Tue, 26 Jun 2012 11:09:47 +0200 Subject: [PATCH] If the DAX contains a cycle, just miserably die ... --- examples/simdag/dax/dax_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/simdag/dax/dax_test.c b/examples/simdag/dax/dax_test.c index 2b90da3a1b..2a873d1288 100644 --- a/examples/simdag/dax/dax_test.c +++ b/examples/simdag/dax/dax_test.c @@ -58,7 +58,10 @@ int main(int argc, char **argv) SD_create_environment(argv[1]); /* load the DAX file */ - dax = SD_daxload(argv[2]); + if (!(dax = SD_daxload(argv[2]))){ + free(tracefilename); + xbt_die("A problem occurred during parsing. The simulation can't continue."); + } /* Display all the tasks */ XBT_INFO -- 2.20.1