<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/22965">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tests: trau_sync: Explicitly drop category from log<br><br>Let's disable hex category here since we don't care about its formatting here.<br><br>In any case, every test relying on logging output validation should<br>always explicitly state the config to avoid issues in the future if<br>default values change.<br><br>Related: OS#5034<br>Change-Id: I332d1215fc7784a6647b90e2eb8b1efcd644002e<br>---<br>M tests/trau_sync/trau_sync_test.c<br>M tests/trau_sync/trau_sync_test.err<br>2 files changed, 16 insertions(+), 14 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/65/22965/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/trau_sync/trau_sync_test.c b/tests/trau_sync/trau_sync_test.c</span><br><span>index d804b3e..88b5c6d 100644</span><br><span>--- a/tests/trau_sync/trau_sync_test.c</span><br><span>+++ b/tests/trau_sync/trau_sync_test.c</span><br><span>@@ -82,5 +82,7 @@</span><br><span>    log_set_use_color(osmo_stderr_target, 0);</span><br><span>    osmo_fsm_log_addr(false);</span><br><span>    log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_NONE);</span><br><span style="color: hsl(120, 100%, 40%);">+       log_set_print_category(osmo_stderr_target, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+        log_set_print_category_hex(osmo_stderr_target, 0);</span><br><span>   test_body();</span><br><span> }</span><br><span>diff --git a/tests/trau_sync/trau_sync_test.err b/tests/trau_sync/trau_sync_test.err</span><br><span>index 7e4a24a..7871054 100644</span><br><span>--- a/tests/trau_sync/trau_sync_test.err</span><br><span>+++ b/tests/trau_sync/trau_sync_test.err</span><br><span>@@ -1,14 +1,14 @@</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){WAIT_FRAME_ALIGN}: Allocated</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){WAIT_FRAME_ALIGN}: state_chg to FRAME_ALIGNED</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){FRAME_ALIGNED}: state_chg to FRAME_ALIGNMENT_LOST</span><br><span style="color: hsl(0, 100%, 40%);">-<0000> trau_sync(test){FRAME_ALIGNMENT_LOST}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){WAIT_FRAME_ALIGN}: Allocated</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){WAIT_FRAME_ALIGN}: state_chg to FRAME_ALIGNED</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){FRAME_ALIGNED}: state_chg to FRAME_ALIGNMENT_LOST</span><br><span style="color: hsl(120, 100%, 40%);">+trau_sync(test){FRAME_ALIGNMENT_LOST}: Received Event RX_BITS</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-abis/+/22965">change 22965</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-abis/+/22965"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-abis </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I332d1215fc7784a6647b90e2eb8b1efcd644002e </div>
<div style="display:none"> Gerrit-Change-Number: 22965 </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>