<p><a href="https://gerrit.osmocom.org/c/libosmocore/+/19847">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/19847/1/tests/lapd/lapd_test.c">File tests/lapd/lapd_test.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19847/1/tests/lapd/lapd_test.c@802">Patch Set #1, Line 802:</a> <code style="font-family:monospace,monospace">SAMB</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">SABM</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19847/1/tests/lapd/lapd_test.c@806">Patch Set #1, Line 806:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">if 0<br>     /* OS#4731: currently these checks would fail, uncomment when the bug is fixed */<br>     OSMO_ASSERT(memcmp(pp1.oph.msg->l2h, ua_pr, sizeof(ua_pr)) == 0);<br>  OSMO_ASSERT(memcmp(pp2.oph.msg->l2h, est_req_sdcch_sapi3,<br>                     sizeof(est_req_sdcch_sapi3)) == 0);<br>#endif<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think we usually submit a test first, but one that doesn't ASSERT but simply prints error messages.  We then merge the patch fixing the bug together with a change in the .ok / .err file but without touching the unit test.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Commenting the important part of the test out here sort-of defeats the purpose of merging the test before the fix, as it doesn't really test what's relevant.</p><p style="white-space: pre-wrap; word-wrap: break-word;">We can go ahead with this, but I'm just explaining how I believe we normally handle those situations.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/19847">change 19847</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/libosmocore/+/19847"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ied0f8bb683de8e37bcfa984c2877aa1cec1c0b4b </div>
<div style="display:none"> Gerrit-Change-Number: 19847 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 27 Aug 2020 13:09:53 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>