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.1, Ensure that the IUT correctly handles message sending operations
13 ** @verdict pass reject
14 *****************************************************************/
16 module NegSem_220201_SendOperation_004 {
18 signature p_NegSem_220201_SendOperation_004(in integer p_par1, out integer p_par2, inout integer p_par3) return integer;
20 /*template p_NegSem_220201_SendOperation_004 s_baseTemplate := {
26 template p_NegSem_220201_SendOperation_004 s_returnTemplate modifies s_baseTemplate := {
30 template p_NegSem_220201_SendOperation_004 s_wrongTemplate modifies s_baseTemplate := {
34 template p_NegSem_220201_SendOperation_004 s_callTemplate := {
40 type port remotePort procedure {
41 out p_NegSem_220201_SendOperation_004;
42 } with {extension "internal"}
44 type component GeneralComp {
48 testcase NegSem_220201_SendOperation_004() runs on GeneralComp {
50 //connect(self:PCO,self:PCO);
52 PCO.send(p_NegSem_220201_SendOperation_004:s_callTemplate);
54 //cannot use send operation on a procedure based port
55 /*PCO.send(p_NegSem_220201_SendOperation_004:s_callTemplate, 5.0) {
56 [] PCO.getreply(p_NegSem_220201_SendOperation_004:s_wrongTemplate value 1) {
59 [] PCO.getreply(p_NegSem_220201_SendOperation_004:s_returnTemplate value 2) {
62 [] PCO.getreply(p_NegSem_220201_SendOperation_004:s_returnTemplate value 1) {
65 [] PCO.catch (timeout) {
72 execute(NegSem_220201_SendOperation_004());