diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-10-16 11:42:56 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2019-10-18 09:27:50 +0000 |
commit | 366f0dbf81d7e5c080a5821e63992013a4c163f0 (patch) | |
tree | b6cd1301b3a724740daa308a8da772693d66f725 /tests | |
parent | c3a6c75cea96932b5a34c0d6a61f8da02aeac6a2 (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/osmux/osmux_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ int main(void) 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); |