pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmo-netif/+/29519 )
Change subject: tests/osmux: Properly flush and free out_handle in osmux_test
......................................................................
tests/osmux: Properly flush and free out_handle in osmux_test
Change-Id: Ia86e4324e21ccc4bd4b138fa5b2b748df23b0aed
---
M tests/osmux/osmux_test.c
M tests/osmux/osmux_test.ok
2 files changed, 15 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/19/29519/1
diff --git a/tests/osmux/osmux_test.c b/tests/osmux/osmux_test.c
index bd38e66..2e1aee0 100644
--- a/tests/osmux/osmux_test.c
+++ b/tests/osmux/osmux_test.c
@@ -319,6 +319,15 @@
osmux_xfrm_input_fini(&h_input);
+ for (i = 0; i < 4; i++) {
+ clock_debug("Flushing CID %u\n", i);
+ osmux_xfrm_output_flush(h_output[i]);
+ }
+
+ for (i = 0; i < 4; i++) {
+ TALLOC_FREE(h_output[i]);
+ }
+
clock_debug("OK: Test passed\n");
return EXIT_SUCCESS;
}
diff --git a/tests/osmux/osmux_test.ok b/tests/osmux/osmux_test.ok
index 81f1928..3a5f321 100644
--- a/tests/osmux/osmux_test.ok
+++ b/tests/osmux/osmux_test.ok
@@ -1077,4 +1077,10 @@
sys={28.604242}, mono={5.180000}: extracted packet: RTP ver=2 ssrc=117440512 type=98
marker=0 ext=0 csrc_count=0 sequence=9316 timestamp=1681718057 [20 14 ff d4 f9 ff fb e7 eb
f9 9f f8 f2 26 33 65 54 ]
sys={28.604242}, mono={5.180000}: extracted packet: RTP ver=2 ssrc=117440513 type=98
marker=0 ext=0 csrc_count=0 sequence=9316 timestamp=1681718057 [20 14 ff d4 f9 ff fb e7 eb
f9 9f f8 f2 26 33 65 54 ]
sys={28.624242}, mono={5.200000}: clock_override_add
+sys={28.624242}, mono={5.200000}: Flushing CID 0
+sys={28.624242}, mono={5.200000}: extracted packet: RTP ver=2 ssrc=117440512 type=98
marker=0 ext=0 csrc_count=0 sequence=9317 timestamp=1681718217 [20 14 ff d4 f9 ff fb e7 eb
f9 9f f8 f2 26 33 65 54 ]
+sys={28.624242}, mono={5.200000}: Flushing CID 1
+sys={28.624242}, mono={5.200000}: extracted packet: RTP ver=2 ssrc=117440513 type=98
marker=0 ext=0 csrc_count=0 sequence=9317 timestamp=1681718217 [20 14 ff d4 f9 ff fb e7 eb
f9 9f f8 f2 26 33 65 54 ]
+sys={28.624242}, mono={5.200000}: Flushing CID 2
+sys={28.624242}, mono={5.200000}: Flushing CID 3
sys={28.624242}, mono={5.200000}: OK: Test passed
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-netif/+/29519
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Ia86e4324e21ccc4bd4b138fa5b2b748df23b0aed
Gerrit-Change-Number: 29519
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange