Skip to content

Changes

Summary

  1. Osmocom_CTRL: counters: return -1 for absent objects (details)
  2. hnbgw: TC_hnb_disconnected_timeout (details)
Commit eb741bb3aacfa7bffaa6cdefdc9b6f9818e5b243 by Neels Hofmeyr
Osmocom_CTRL: counters: return -1 for absent objects

Teach the CTRL functions that retrieve rate counters to return counters
of -1 when a requested object is not present, instead of erroring and
stopping the test. Like this we can expect absence of an object.

Upcoming patch Ibec009203d38f65714561b7c28edbdbd8b34e704 uses this.

Related: SYS#6773
Change-Id: Id00bbfe721d453e5f551e6d47e1b1d03d219700b
The file was modified library/Osmocom_CTRL_Functions.ttcn
Commit 4f310fb61cf44d1ce4f1e4e59173be5f6e9283ef by Neels Hofmeyr
hnbgw: TC_hnb_disconnected_timeout

Test the new timer hnbgw X35: discard all hnb_persistent state after a
given timeout.

While a hnb_persistent is present, its rate_ctrs and stat_items remain
present. When it is discarded, these vanish again. Use this to verify
that discarding and re-registering a hnb_persistent works.

Set X35 to five seconds, drop the Iuh link, wait and verify that the
rate counter group for the hnb_persistent is gone.

Then reconnect and disconnect again, to provoke errors like
use-after-free.

Depends: osmo-hnbgw Ic819d7cbc03fb39e98c204b70d016c5170dc6307
Related: SYS#6773
Change-Id: Ibec009203d38f65714561b7c28edbdbd8b34e704
The file was modified hnbgw/HNBGW_Tests.ttcn
The file was modified library/Osmocom_CTRL_Functions.ttcn