conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 24_test_verdict_operations / 2401_the_verdict_mechanism / Sem_2401_GlobalVerdict_010.ttcn
1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Adrien Kirjak – initial implementation
10 *
11 ** @version 0.0.2
12 ** @purpose 1:24.1, Ensure overwriting rules for global verdict: none can't overwrite fail.
13 ** @verdict pass accept, ttcn3verdict:fail
14 *****************************************************************/
15 /*
16 * #reqname /Requirements/24 Test verdict operations/24.1 The Verdict mechanism/Overwriting rules for setverdict
17 **/
18
19
20 module Sem_2401_GlobalVerdict_010 {
21 type component GeneralComp {}
22
23 function set_PTC_verdict_fail() runs on GeneralComp {
24 setverdict(fail);
25 }
26
27 function set_PTC_verdict_none() runs on GeneralComp {
28 setverdict(none);
29 }
30
31 testcase TC_Sem_2401_GlobalVerdict_010() runs on GeneralComp system GeneralComp {
32 var GeneralComp PTC1, PTC2;
33
34 PTC1 := GeneralComp.create;
35 PTC2 := GeneralComp.create;
36 PTC1.start(set_PTC_verdict_fail());
37 PTC2.start(set_PTC_verdict_none());
38 all component.done;
39 // Verdict none can't overwrite fail
40 }
41
42 control{
43 execute(TC_Sem_2401_GlobalVerdict_010());
44 }
45 }
This page took 0.032081 seconds and 5 git commands to generate.