[PATCH libosmo-netif 13/18] tests: osmux: validate dummy padding with no voice data interaction

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

pablo at gnumonks.org pablo at gnumonks.org
Tue Jul 21 14:23:28 UTC 2015


From: Pablo Neira Ayuso <pablo at soleta.eu>

Make sure that early dummy bandwitch preallocation works fine in the absence of
any kind of voice traffic.
---
 tests/osmux/osmux_test.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/osmux/osmux_test.c b/tests/osmux/osmux_test.c
index 09ef9fd..0ad02d3 100644
--- a/tests/osmux/osmux_test.c
+++ b/tests/osmux/osmux_test.c
@@ -191,6 +191,10 @@ int main(void)
 	osmux_xfrm_input_open_circuit(&h_input, 2, 1);
 	osmux_xfrm_input_open_circuit(&h_input, 3, 1);
 
+	/* Wait 10 times to make sure dummy padding timer works fine */
+	for (i = 0; i < 10; i++)
+		osmo_select_main(0);
+
 	/* Start pushing voice data to circuits 0 and 1 */
 	osmux_test_loop(0);
 	/* ... now start pushing voice data to circuits 2 and 3. This circuits
-- 
1.7.10.4




More information about the OpenBSC mailing list