<p>fixeria <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/16140">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">logging/vty: fix: actually ignore deprecated logging commands<br><br>We shall not prevent programs from starting if their configuration<br>files contain deprecated 'logging level ...' commands. Just print<br>a warning and return CMD_SUCCESS instead of CMD_WARNING.<br><br>While writing a unit test, another funny bug has been uncovered.<br>Parsing of a deprecated command indeed triggers a deprecation<br>warning, originated from libosmovty's log_deprecated_func().<br>This function simply calls vty_out(), but...<br><br>Since the invocation of the vty_out() happens _before_ the VTY<br>is initialized, the process is actually writing that warning<br>to its own stdin! Most likely, because we use talloc_zero()<br>to allocate a new instance of struct 'vty'.<br><br>As a side effect, the evil warning magically appears in the output<br>of 'make check', breaking the test statistics. Let's work around<br>this bug for now by redirecting stdin to /dev/null.<br><br>Change-Id: Ia934581410cd41594791d4e14ee74c16abe1009a<br>Fixes: Ic9c1b566ec4a459f03e6319cf369691903cf9d00<br>---<br>M src/vty/logging_vty.c<br>M tests/Makefile.am<br>M tests/testsuite.at<br>A tests/vty/ok_deprecated_logging.cfg<br>M tests/vty/vty_test.c<br>M tests/vty/vty_test.ok<br>6 files changed, 15 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/40/16140/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/16140">change 16140</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/+/16140"/><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: Ia934581410cd41594791d4e14ee74c16abe1009a </div>
<div style="display:none"> Gerrit-Change-Number: 16140 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>