mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-02 11:28:04 +00:00
Fix lint issue, add unit test failure for Jenkins to catch
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user