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:23, Ensure timer runs from zero to stated value
13 ** @verdict pass accept, ttnc3verdict:pass
14 ***************************************************/
15 // #reqname /Requirements/23 Timer operations/23.2 The start timer operation/timer clock runs from 0 to the value set
17 module Sem_2302_timer_start_001 {
22 testcase TC_Sem_2302_timer_start_001() runs on TComp{
23 timer t_short, t_long;
25 var float v_last := 0.0;
31 while (t_short.running) {
32 v_elapsed := t_timer.read;
33 log("t_timer.read = ", v_elapsed);
34 if (v_elapsed<0.0 or v_elapsed < v_last){
39 while (t_timer.running) {
40 v_elapsed := t_long.read;
41 log("t_long.read = ", v_elapsed);
42 if (v_elapsed < v_last){
52 execute(TC_Sem_2302_timer_start_001())