Increased number of cycles for testing FIFO.
This commit is contained in:
@@ -136,7 +136,7 @@ uint8_t FIFO_Get(
|
|||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* DESCRIPTION: Adds an element of data to the FIFO
|
* DESCRIPTION: Adds an element of data to the FIFO
|
||||||
* RETURN: true on succesful add, false if not added
|
* RETURN: true on successful add, false if not added
|
||||||
* ALGORITHM: none
|
* ALGORITHM: none
|
||||||
* NOTES: none
|
* NOTES: none
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
@@ -242,10 +242,12 @@ void testFIFOBuffer(
|
|||||||
uint8_t index;
|
uint8_t index;
|
||||||
uint8_t count;
|
uint8_t count;
|
||||||
bool status;
|
bool status;
|
||||||
|
uint8_t cycles;
|
||||||
|
|
||||||
FIFO_Init(&test_buffer, data_store, sizeof(data_store));
|
FIFO_Init(&test_buffer, data_store, sizeof(data_store));
|
||||||
ct_test(pTest, FIFO_Empty(&test_buffer));
|
ct_test(pTest, FIFO_Empty(&test_buffer));
|
||||||
|
|
||||||
|
for (cycles = 0; cycles < 32; cycles++) {
|
||||||
/* load the buffer */
|
/* load the buffer */
|
||||||
for (test_data = 0; test_data < FIFO_BUFFER_SIZE; test_data++) {
|
for (test_data = 0; test_data < FIFO_BUFFER_SIZE; test_data++) {
|
||||||
ct_test(pTest, !FIFO_Full(&test_buffer));
|
ct_test(pTest, !FIFO_Full(&test_buffer));
|
||||||
@@ -314,6 +316,7 @@ void testFIFOBuffer(
|
|||||||
ct_test(pTest, !FIFO_Empty(&test_buffer));
|
ct_test(pTest, !FIFO_Empty(&test_buffer));
|
||||||
FIFO_Flush(&test_buffer);
|
FIFO_Flush(&test_buffer);
|
||||||
ct_test(pTest, FIFO_Empty(&test_buffer));
|
ct_test(pTest, FIFO_Empty(&test_buffer));
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user