conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 20_statement_and_operations_for_alt / 2005_default_handling / 200502_the_activate_operation / Sem_200502_the_activate_operation_004.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:20.5.2, verify passing port parameter to activated altstep
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15
16 // The following requirement is tested:
17 // An altstep that is activated as a default shall only have in parameters, port parameters, or timer parameters.
18
19 module Sem_200502_the_activate_operation_004 {
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 altstep a(P p_port) runs on GeneralComp {
30 [] p_port.receive(integer:?) { setverdict(pass); }
31 }
32
33 testcase TC_Sem_200502_the_activate_operation_004() runs on GeneralComp {
34 activate(a(p));
35
36 connect(self:p, self:p);
37 p.send(integer:1);
38
39 alt {
40 [] p.receive(integer:0) { setverdict(fail); }
41 }
42 }
43
44 control{
45 execute(TC_Sem_200502_the_activate_operation_004());
46 }
47 }
This page took 0.034571 seconds and 5 git commands to generate.