<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-netif/+/15798">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tests: osmux_test: Hardcode h_output values set by random()<br><br>osmux implementation randomizes those values. It seems build in OBS<br>sometimes provide different values than the ones expected in the test<br>result. Let's hardcode them to make sure we always have the same values<br>regarless of the random() implementation.<br><br>Values chosen are the one matching the current expected test output so<br>it doesn't need any change.<br><br>Change-Id: Icc553c83ddff41900ae3d5990a655c29c9073e01<br>---<br>M tests/osmux/osmux_test.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/98/15798/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/osmux/osmux_test.c b/tests/osmux/osmux_test.c</span><br><span>index 7fa9af7..b6a43fe 100644</span><br><span>--- a/tests/osmux/osmux_test.c</span><br><span>+++ b/tests/osmux/osmux_test.c</span><br><span>@@ -299,6 +299,9 @@</span><br><span> </span><br><span>    osmux_xfrm_output_init2(&h_output, 0x7000000, 98);</span><br><span>       osmux_xfrm_output_set_tx_cb(&h_output, tx_cb, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+      /* These fields are set using random() */</span><br><span style="color: hsl(120, 100%, 40%);">+     h_output.rtp_seq = 9158;</span><br><span style="color: hsl(120, 100%, 40%);">+      h_output.rtp_timestamp = 1681692777;</span><br><span> </span><br><span>     /* If the test takes longer than 10 seconds, abort it */</span><br><span>     alarm(10);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-netif/+/15798">change 15798</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmo-netif/+/15798"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-netif </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Icc553c83ddff41900ae3d5990a655c29c9073e01 </div>
<div style="display:none"> Gerrit-Change-Number: 15798 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>