jolly has uploaded this change for review.
IPAd: Cleanly process TC_set_device_capabilities
Process the test and make IPAd terminate cleanly. This is required to
check if all memory was freed and there is no memory leak.
Related: SYS#8199
Change-Id: I426b2d0d00790577468599fedd65377a4e4bfeed
---
M ipad/IPAd_Tests.ttcn
1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/21/43621/1
diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn
index 0c013d9..18ed355 100644
--- a/ipad/IPAd_Tests.ttcn
+++ b/ipad/IPAd_Tests.ttcn
@@ -981,7 +981,17 @@
private function f_TC_set_device_capabilities(charstring id) runs on IPAd_ConnHdlr {
f_exec_ipad("-D 0xF1");
f_es10x_init(dev_capa := 'F1'O);
+ f_http_register();
+
+ /* IPAd will poll for eIM package. */
+ f_terminate_poll_cycle();
+
+ /* Wait some time until the the last HTTP response is actually delivered */
+ f_sleep(2.0);
+
+ f_es10x_close();
f_stop_ipad();
+
setverdict(pass);
}
testcase TC_set_device_capabilities() runs on MTC_CT {
To view, visit change 43621. To unsubscribe, or for help writing mail filters, visit settings.