From c2f405430befb1e1b013daf24b091c7ddefa39d9 Mon Sep 17 00:00:00 2001 From: thiery Date: Fri, 12 Nov 2010 18:44:20 +0000 Subject: [PATCH] Add an invalid platform test for which the parser should trigger an assertion error git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8542 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- .../simdag/platforms/two_hosts_asymetric.tesh | 5 ++++ .../platforms/two_hosts_asymetric_BOGUS2.xml | 29 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 teshsuite/simdag/platforms/two_hosts_asymetric_BOGUS2.xml diff --git a/teshsuite/simdag/platforms/two_hosts_asymetric.tesh b/teshsuite/simdag/platforms/two_hosts_asymetric.tesh index ff075d2aa8..2283477b71 100644 --- a/teshsuite/simdag/platforms/two_hosts_asymetric.tesh +++ b/teshsuite/simdag/platforms/two_hosts_asymetric.tesh @@ -3,3 +3,8 @@ $ ./flatifier two_hosts_asymetric_BOGUS.xml --log=root.fmt:[%10.6r]%e(%i:%P@%h)% > [ 0.000000] (0:@) surf_workstation_model_init_ptask_L07 > [ 0.000000] (0:@) Error while loading two_hosts_asymetric_BOGUS.xml: The route between "alice" and "bob" already exist +! expect signal SIGABRT +$ ./flatifier two_hosts_asymetric_BOGUS2.xml --log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n +> [ 0.000000] (0:@) surf_workstation_model_init_ptask_L07 +> [ 0.000000] (0:@) Error while loading two_hosts_asymetric_BOGUS2.xml: The route between "alice" and "bob" already exist + diff --git a/teshsuite/simdag/platforms/two_hosts_asymetric_BOGUS2.xml b/teshsuite/simdag/platforms/two_hosts_asymetric_BOGUS2.xml new file mode 100644 index 0000000000..80382730df --- /dev/null +++ b/teshsuite/simdag/platforms/two_hosts_asymetric_BOGUS2.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.20.1