pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-netif/+/15798 )


Change subject: tests: osmux_test: Hardcode h_output values set by random()
......................................................................

tests: osmux_test: Hardcode h_output values set by random()

osmux implementation randomizes those values. It seems build in OBS
sometimes provide different values than the ones expected in the test
result. Let's hardcode them to make sure we always have the same values
regarless of the random() implementation.

Values chosen are the one matching the current expected test output so
it doesn't need any change.

Change-Id: Icc553c83ddff41900ae3d5990a655c29c9073e01
---
M tests/osmux/osmux_test.c
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/98/15798/1

diff --git a/tests/osmux/osmux_test.c b/tests/osmux/osmux_test.c
index 7fa9af7..b6a43fe 100644
--- a/tests/osmux/osmux_test.c
+++ b/tests/osmux/osmux_test.c
@@ -299,6 +299,9 @@

        osmux_xfrm_output_init2(&h_output, 0x7000000, 98);
        osmux_xfrm_output_set_tx_cb(&h_output, tx_cb, NULL);
+       /* These fields are set using random() */
+       h_output.rtp_seq = 9158;
+       h_output.rtp_timestamp = 1681692777;

        /* If the test takes longer than 10 seconds, abort it */
        alarm(10);

--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/15798
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Icc553c83ddff41900ae3d5990a655c29c9073e01
Gerrit-Change-Number: 15798
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pes...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to