summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@espeweb.net>2021-02-05 12:18:06 +0100
committerPau Espin Pedrol <pespin@espeweb.net>2021-02-08 12:32:07 +0100
commit40a029538241ef61c0d91f5ceed4c7835bba11f6 (patch)
treeecd53a92970b5cac88cda46c5e2e57ea60cf05db
parent847a1651cde7a2f60d4a3bfe5288d0a272cfbbe3 (diff)
CTRL: Avoid using keyword 'now' as var
Fixes warning: Keyword 'now' is treated as an identifier. Activate compiler option '-I' to use real-time testing features Change-Id: I2b350bc93b33f36f72d35cb48d01f6c37ac1630f
-rw-r--r--library/Osmocom_CTRL_Functions.ttcn8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/Osmocom_CTRL_Functions.ttcn b/library/Osmocom_CTRL_Functions.ttcn
index 294fe336..15cb26f9 100644
--- a/library/Osmocom_CTRL_Functions.ttcn
+++ b/library/Osmocom_CTRL_Functions.ttcn
@@ -268,14 +268,14 @@ module Osmocom_CTRL_Functions {
* Set the test verdict accordingly. */
function f_counter_name_vals_expect(IPA_CTRL_PT pt, charstring instance_name, integer instance_nr,
CounterNameVals vals) {
- var CounterNameVals now := f_counter_name_vals_get(pt, instance_name, instance_nr, vals);
+ var CounterNameVals last := f_counter_name_vals_get(pt, instance_name, instance_nr, vals);
for (var integer i := 0; i < lengthof(vals); i := i + 1) {
- if (now[i].name != vals[i].name) {
+ if (last[i].name != vals[i].name) {
setverdict(fail, "Internal error");
}
- if (now[i].val != vals[i].val) {
+ if (last[i].val != vals[i].val) {
setverdict(fail, "Rate counter mismatch: ", instance_name, " ", instance_nr,
- " ", vals[i].name, " is at ", now[i].val, " but expected ", vals[i].val);
+ " ", vals[i].name, " is at ", last[i].val, " but expected ", vals[i].val);
}
}
setverdict(pass);