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 */
#! ./tesh
p Test the DAX loader with a DAX comprising a cycle.
-! expect signal SIGABRT
$ $SG_TEST_EXENV ./dax_test --log=no_loc ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/simple_dax_with_cycle.xml
> [0.000000] [surf_workstation/INFO] surf_workstation_model_init_ptask_L07
> [0.000000] [sd_daxparse/WARNING] the task root is not marked
> [0.000000] [sd_daxparse/WARNING] the task 2@task2 is in a cycle
> [0.000000] [sd_daxparse/WARNING] the task 3@task3 is in a cycle
> [0.000000] [sd_daxparse/ERROR] The DAX described in simple_dax_with_cycle.xml is not a DAG. It contains a cycle.
-> [0.000000] [xbt/CRITICAL] A problem occurred during parsing. The simulation can't continue.
+> [0.000000] [test/ERROR] A problem occurred during DAX parsing (cycle or syntax). Do not continue this test