conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 21_configuration_operations / 2103_test_component_operations / 210305_alive_operation / NegSem_210305_alive_operation_006.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.1
12 ** @purpose 1:21.3.5, partially initialized array in any from ComponentArrayRef.alive
13 ** @verdict pass reject
14 *****************************************************************/
15
16 // The following requirements are tested:
17 // The ComponentArrayRef shall be a reference to a completely initialized component array.
18
19 module NegSem_210305_alive_operation_006 {
20
21 type port P message {
22 inout integer;
23 } with {extension "internal"}
24
25 type component GeneralComp {
26 port P p;
27 }
28
29 function f() runs on GeneralComp {
30 p.receive(integer:?);
31 }
32
33 testcase TC_NegSem_210305_alive_operation_006() runs on GeneralComp system GeneralComp {
34 var GeneralComp v_ptcs[2];
35 v_ptcs[0] := GeneralComp.create alive;
36 v_ptcs[0].start(f());
37 if (any from v_ptcs.alive) {
38 setverdict(pass);
39 }
40 }
41
42 control {
43 execute(TC_NegSem_210305_alive_operation_006(), 5.0);
44 }
45 }
This page took 0.076056 seconds and 5 git commands to generate.