Fixed a bug in queue tests, queue is now tested and working.
This commit is contained in:
parent
48c240315f
commit
269259adb2
|
@ -176,8 +176,8 @@ int test_serialization() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check the values. */
|
/* Check the values. */
|
||||||
for (i = 0; i < SERIALIZATION_TEST_QUEUE_LENGTH; i++) {
|
for (i = 0; i < SERIALIZATION_TEST_QUEUE_LENGTH ; i++) {
|
||||||
if (array[i] != i) {
|
if (array[i] != (SERIALIZATION_TEST_QUEUE_LENGTH - 1 - i)) {
|
||||||
/* Clear the queue. */
|
/* Clear the queue. */
|
||||||
clear_queue_data(&queue, NULL);
|
clear_queue_data(&queue, NULL);
|
||||||
/* Free the array. */
|
/* Free the array. */
|
||||||
|
|
Loading…
Reference in New Issue