pespin has submitted this change. ( 
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(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved



diff --git a/tests/osmux/osmux_test.c b/tests/osmux/osmux_test.c
index 3af32e2..d6b7040 100644
--- a/tests/osmux/osmux_test.c
+++ b/tests/osmux/osmux_test.c
@@ -320,6 +320,15 @@

        osmux_xfrm_input_fini(&h_input);

+       for (i = 0; i < ARRAY_SIZE(h_output); i++) {
+               clock_debug("Flushing CID %u\n", i);
+               osmux_xfrm_output_flush(h_output[i]);
+       }
+
+       for (i = 0; i < ARRAY_SIZE(h_output); 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: 3
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to