Fix lint issue, add unit test failure for Jenkins to catch

This commit is contained in:
mdlewisfb
2018-11-28 08:34:06 -08:00
parent b1be82efca
commit f00aef2b6d
2 changed files with 6 additions and 2 deletions

View File

@@ -334,11 +334,14 @@ static void bigbrother_init(void)
/*Creating Semaphore for RX Message Queue*/ /*Creating Semaphore for RX Message Queue*/
semBigBrotherMsg = Semaphore_create(0, NULL, NULL); semBigBrotherMsg = Semaphore_create(0, NULL, NULL);
if (semBigBrotherMsg == NULL) { if (semBigBrotherMsg == NULL) {
LOGGER_ERROR("BIGBROTHER:ERROR::BIGBROTHER RX Semaphore creation failed.\n"); LOGGER_ERROR(
"BIGBROTHER:ERROR::BIGBROTHER RX Semaphore creation failed.\n");
} }
/*Creating RX Message Queue*/ /*Creating RX Message Queue*/
bigBrotherRxMsgQueue = Util_constructQueue(&bigBrotherRxMsg); bigBrotherRxMsgQueue = Util_constructQueue(&bigBrotherRxMsg);
LOGGER_DEBUG("BIGBROTHER:INFO::Constructing message Queue for 0x%x Big Brother RX Messages.\n", bigBrotherRxMsgQueue); LOGGER_DEBUG(
"BIGBROTHER:INFO::Constructing message Queue for 0x%x Big Brother RX Messages.\n",
bigBrotherRxMsgQueue);
/*Creating TX Message Queue*/ /*Creating TX Message Queue*/
bigBrotherTxMsgQueue = Util_constructQueue(&bigBrotherTxMsg); bigBrotherTxMsgQueue = Util_constructQueue(&bigBrotherTxMsg);

View File

@@ -67,6 +67,7 @@ void test_ocgpio_write(void)
OcGpio_GpioPins[1] = 1; OcGpio_GpioPins[1] = 1;
TEST_ASSERT_EQUAL(OCGPIO_SUCCESS, OcGpio_write(&s_fake_pin, 0)); TEST_ASSERT_EQUAL(OCGPIO_SUCCESS, OcGpio_write(&s_fake_pin, 0));
TEST_ASSERT_EQUAL(0, OcGpio_GpioPins[1]); TEST_ASSERT_EQUAL(0, OcGpio_GpioPins[1]);
TEST_ASSERT_EQUAL(1, OcGpio_GpioPins[1]);
} }
void test_ocgpio_configure(void) void test_ocgpio_configure(void)