diff options
author | Stefan Radomski <sradomski@mintwerk.de> | 2016-01-19 22:08:38 (GMT) |
---|---|---|
committer | Stefan Radomski <sradomski@mintwerk.de> | 2016-01-19 22:08:38 (GMT) |
commit | b5abd34bfcc07588c7220d094a04dbc5708d344b (patch) | |
tree | a4a352a332ace04e5ce66fb29c4f8c9efd351af5 /test/uscxml/automated/ecma/deep-histories.scxml | |
parent | 024d82815dc6f2e2298fc8661424c25dd4c79d85 (diff) | |
download | uscxml-b5abd34bfcc07588c7220d094a04dbc5708d344b.zip uscxml-b5abd34bfcc07588c7220d094a04dbc5708d344b.tar.gz uscxml-b5abd34bfcc07588c7220d094a04dbc5708d344b.tar.bz2 |
Fixed a bug in generated C with deep initial states
Diffstat (limited to 'test/uscxml/automated/ecma/deep-histories.scxml')
-rw-r--r-- | test/uscxml/automated/ecma/deep-histories.scxml | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/test/uscxml/automated/ecma/deep-histories.scxml b/test/uscxml/automated/ecma/deep-histories.scxml index 1d22131..3c2f396 100644 --- a/test/uscxml/automated/ecma/deep-histories.scxml +++ b/test/uscxml/automated/ecma/deep-histories.scxml @@ -3,19 +3,38 @@ <data id="Var1" expr="0" /> </datamodel> <state id="s0"> + <transition target="pass" cond="Var1 == 2" /> + <transition target="fail" /> <history id="s0.h0" type="deep" /> <state id="s0.0"> <history id="s0.0.h0" type="shallow" /> <state id="s0.0.0"> + <!-- initial default completion --> + <!-- spontaneous transition to s0.0.1 --> + <transition target="s0.0.1" /> </state> <state id="s0.0.1"> + <onentry> + <assign location="Var1" expr="Var1 + 1" /> + </onentry> + <!-- spontaneous transition to s1, sets s0.0.h0 and s0.h0 --> + <transition target="s1" cond="Var1 == 1" /> </state> </state> <state id="s0.1"> - + <!-- we come from s1 --> + <!-- spontaneous transition to s2, sets s0.h0 and erroneously overwrites s0.0.h0 --> + <transition target="s2" /> </state> </state> <state id="s1"> - </state> - + <!-- We come from s0.0.1 , Var1 == 1--> + <transition target="s0.1" /> + </state> + <state id="s2"> + <!-- We come from s0.1 , Var1 == 1--> + <transition target="s0.0.h0" /> + </state> + <final id="pass" /> + <final id="fail" /> </scxml>
\ No newline at end of file |