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
10 * Szabo, Janos Zoltan – initial implementation
12 ******************************************************************************/
13 module TcontrolTimer {
17 testcase tc_delay(float delay) runs on CT
26 testcase SetVerdict(verdicttype v) runs on CT
35 execute(tc_delay(0.1));
37 [] T.timeout { execute(SetVerdict(fail)); }
38 [] any timer.timeout { execute(SetVerdict(pass)); }
43 timer T1 := 0.3, T2 := 0.4;
45 execute(tc_delay(0.1));
48 [] T1.timeout { execute(SetVerdict(pass)); }
49 [] T2.timeout { execute(SetVerdict(fail)); }
53 execute(tc_delay(0.1), 0.2);
56 [] T1.timeout { execute(SetVerdict(pass)); }
57 [] T2.timeout { execute(SetVerdict(fail)); }