One more litte test for Tommy

Just to increase the code coverage.
This commit is contained in:
Andrea Mazzoleni 2017-11-06 21:49:18 +01:00
parent 3df432ed80
commit 5f716773ab

View file

@ -359,6 +359,9 @@ static void test_tommy(void)
*(unsigned*)tommy_arrayblkof_ref(&arrayblkof, i) = i;
}
tommy_array_grow(&array, TOMMY_SIZE);
tommy_arrayblkof_grow(&arrayblkof, TOMMY_SIZE);
if (tommy_array_memory_usage(&array) < TOMMY_SIZE * sizeof(void*)) {
/* LCOV_EXCL_START */
goto bail;