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:22.2.3, any from port.trigger statement
13 ** @verdict pass accept, ttcn3verdict:pass
14 *****************************************************************/
16 // The following requirements are tested:
17 // To trigger on a message at any port from a specific port array, use the any from
18 // PortArrayRef syntax where PortArrayRef shall be a reference to a port array
21 module Sem_220203_TriggerOperation_019 {
25 } with {extension "internal"}
27 type component GeneralComp
33 testcase TC_Sem_220203_TriggerOperation_019() runs on GeneralComp {
35 connect(self:p[2], self:p[2]);
36 connect(self:altP, self:altP);
42 [] any from p.trigger(integer:?) { setverdict(pass); }
43 [] any port.receive { setverdict(fail); }
48 execute(TC_Sem_220203_TriggerOperation_019(), 5.0);