conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 08_modules / 0803_module_control_part / Syn_0803_ModuleControlPart_002.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:8.3, Ensure that the module control part with a few commonly used stateents is accepted.
13 ** @verdict pass accept, ttcn3verdict:pass
14 *****************************************************************/
15
16 module Syn_0803_ModuleControlPart_002 {
17
18 type component GeneralComp {}
19
20 type record MyRecordType {
21 integer field1,
22 charstring field2
23 }
24
25 testcase TC_Syn_0803_ModuleControlPart_002() runs on GeneralComp {
26 setverdict(pass);
27 }
28
29 control {
30 var integer v_i := 1;
31 const charstring v_hello := "Hello World";
32 timer t_mytimer;
33 t_mytimer.start(1.0);
34 if (v_i == 1) {
35 execute(TC_Syn_0803_ModuleControlPart_002(), 5.0);
36 } else {
37 log("something went wrong");
38 }
39 t_mytimer.stop;
40 }
41
42 }
This page took 0.046871 seconds and 5 git commands to generate.