conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 22_communication_operations / 2202_message_based_communication / 220203_trigger_operation / Sem_220203_TriggerOperation_017.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:22.2.3, redirect assignment storing a component
13 ** @verdict pass accept, ttcn3verdict:pass
14 *****************************************************************/
15
16 // The following requirements are tested:
17 // Rules in clause 22.2.2 shall apply.
18 // It is also possible to retrieve and store the component reference or address of
19 // the sender of a message. This is denoted by the keyword sender.
20
21 module Sem_220203_TriggerOperation_017 {
22
23 type port P message {
24 inout integer;
25 } with {extension "internal"}
26
27 type component GeneralComp
28 {
29 port P p;
30 }
31
32 testcase TC_Sem_220203_TriggerOperation_017() runs on GeneralComp system GeneralComp {
33 var GeneralComp v_tc := null;
34
35 connect(self:p, self:p);
36 p.send(10);
37 p.trigger(integer:?) -> sender v_tc;
38 if (v_tc == self) { setverdict(pass); }
39 else { setverdict(fail); }
40 }
41
42 control {
43 execute(TC_Sem_220203_TriggerOperation_017(), 5.0);
44 }
45 }
This page took 0.038626 seconds and 5 git commands to generate.