From: suter Date: Tue, 26 Jun 2012 10:24:21 +0000 (+0200) Subject: add a new test that loads a DAX with a cycle. It should be detected and X-Git-Tag: v3_8~458 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ab7418ea55f8abd705c79a413b36d01bd7b1f666 add a new test that loads a DAX with a cycle. It should be detected and the test should abort. --- diff --git a/examples/simdag/dax/simple_dax_with_cycle.tesh b/examples/simdag/dax/simple_dax_with_cycle.tesh new file mode 100644 index 0000000000..151fc96c5c --- /dev/null +++ b/examples/simdag/dax/simple_dax_with_cycle.tesh @@ -0,0 +1,12 @@ +#! ./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 1@task1 is in a cycle +> [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. diff --git a/examples/simdag/dax/simple_dax_with_cycle.xml b/examples/simdag/dax/simple_dax_with_cycle.xml new file mode 100644 index 0000000000..eb8ff13da1 --- /dev/null +++ b/examples/simdag/dax/simple_dax_with_cycle.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + +