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
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:20.2, Ensure that alt statements are correctly handled for dynamically mapped ports
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
16 // Mycompport A is dynamically mapped
17 module Sem_2002_TheAltStatement_012{
19 type port loopbackPort message {
21 } with {extension "internal"}
23 type port IntegerOutputPortType message {
25 } with {extension "internal"}
27 type component GeneralComp
29 port IntegerOutputPortType MycomportA
32 type component MyTestSystemInterface
34 port loopbackPort messagePort
37 // MyTestSystemInterface is the test system interface
38 testcase TC_Sem_2002_TheAltStatement_012() runs on GeneralComp system MyTestSystemInterface {
39 timer tc_timer := 0.1;
41 map(mtc:MycomportA, system:messagePort);
46 unmap(mtc:MycomportA, system:messagePort);
50 [] MycomportA.receive {
58 execute(TC_Sem_2002_TheAltStatement_012());