[Asterisk-code-review] test_taskprocessor.c: Fix test failure on Ubuntu (...asterisk[16])

George Joseph asteriskteam at digium.com
Fri Oct 11 08:42:56 CDT 2019


George Joseph has submitted this change and it was merged. ( https://gerrit.asterisk.org/c/asterisk/+/13035 )

Change subject: test_taskprocessor.c: Fix test failure on Ubuntu
......................................................................

test_taskprocessor.c: Fix test failure on Ubuntu

Fixes a failure in /main/taskprocesor unit test, only occurring in Ubuntu.
Newer versions of GCC require variable initialization.

Change-Id: I2994d8aab9307a8c2c7330584f287a27144a580c
---
M tests/test_taskprocessor.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, approved
  George Joseph: Approved for Submit



diff --git a/tests/test_taskprocessor.c b/tests/test_taskprocessor.c
index 70cb556..dbef34e 100644
--- a/tests/test_taskprocessor.c
+++ b/tests/test_taskprocessor.c
@@ -182,7 +182,7 @@
 #define LOW_WATER_MARK 3
 #define HIGH_WATER_MARK 6
 	struct task_data *task_data[(TEST_DATA_ARRAY_SIZE + 1)] = { 0 };
-	int res;
+	int res = 0;
 	int i;
 	long queue_count;
 	unsigned int alert_level;

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13035
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I2994d8aab9307a8c2c7330584f287a27144a580c
Gerrit-Change-Number: 13035
Gerrit-PatchSet: 2
Gerrit-Owner: Christian Savinovich <csavinovich at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20191011/72c4c423/attachment.html>


More information about the asterisk-code-review mailing list