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
|
||||
* RETURN: true on succesful add, false if not added
|
||||
* RETURN: true on successful add, false if not added
|
||||
* ALGORITHM: none
|
||||
* NOTES: none
|
||||
*****************************************************************************/
|
||||
@@ -242,10 +242,12 @@ void testFIFOBuffer(
|
||||
uint8_t index;
|
||||
uint8_t count;
|
||||
bool status;
|
||||
uint8_t cycles;
|
||||
|
||||
FIFO_Init(&test_buffer, data_store, sizeof(data_store));
|
||||
ct_test(pTest, FIFO_Empty(&test_buffer));
|
||||
|
||||
for (cycles = 0; cycles < 32; cycles++) {
|
||||
/* load the buffer */
|
||||
for (test_data = 0; test_data < FIFO_BUFFER_SIZE; test_data++) {
|
||||
ct_test(pTest, !FIFO_Full(&test_buffer));
|
||||
@@ -314,6 +316,7 @@ void testFIFOBuffer(
|
||||
ct_test(pTest, !FIFO_Empty(&test_buffer));
|
||||
FIFO_Flush(&test_buffer);
|
||||
ct_test(pTest, FIFO_Empty(&test_buffer));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user