<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7394">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Corey Farrell: Looks good to me, but someone else must approve
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tests: Fix warnings found on Mac.<br><br>test_pbx used raise without explicitly including signal.h. On Mac for<br>some reason nothing else includes it.<br><br>test_logger checked if an unsigned int was negative. Switch the<br>variable to 'int' so that error check can be effective.<br><br>Change-Id: Ie1db5dd1818ac25cc2ae41b644f848b5865b1362<br>(cherry picked from commit 5fe2e7bfdcd06935594823faba67c71ead7ebcf5)<br>---<br>M tests/test_logger.c<br>M tests/test_pbx.c<br>2 files changed, 4 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/tests/test_logger.c b/tests/test_logger.c<br>index bf809ba..08585a6 100644<br>--- a/tests/test_logger.c<br>+++ b/tests/test_logger.c<br>@@ -192,7 +192,7 @@<br> <br> static char *handle_cli_queue_test(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)<br> {<br>- unsigned int level;<br>+ int level;<br> int current_queue_limit;<br> unsigned int x;<br> struct timeval start, end;<br>@@ -222,7 +222,7 @@<br> ast_cli(a->fd, "Test: Failed, could not register level 'queuetest'.\n");<br> return CLI_SUCCESS;<br> }<br>- ast_cli(a->fd, "Test: got level %u for 'queuetest'.\n", level);<br>+ ast_cli(a->fd, "Test: got level %d for 'queuetest'.\n", level);<br> <br> if (ast_logger_create_channel(tmppath, "queuetest") != AST_LOGGER_SUCCESS) {<br> ast_cli(a->fd, "Test: Unable to create logger channel '%s'\n", tmppath);<br>diff --git a/tests/test_pbx.c b/tests/test_pbx.c<br>index acf7484..df6b88d 100644<br>--- a/tests/test_pbx.c<br>+++ b/tests/test_pbx.c<br>@@ -39,6 +39,8 @@<br> #include "asterisk/pbx.h"<br> #include "asterisk/test.h"<br> <br>+#include <signal.h><br>+<br> /*!<br> * If we determine that we really need<br> * to be able to register more than 10<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7394">change 7394</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.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.asterisk.org/7394"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: certified/13.18 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ie1db5dd1818ac25cc2ae41b644f848b5865b1362 </div>
<div style="display:none"> Gerrit-Change-Number: 7394 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>