Ensure buffers do not hurt layer pool.

This commit is contained in:
Michael Jumper 2012-08-27 15:10:27 -07:00
parent af490aafbe
commit 1bcc1e7d5a

View File

@ -56,6 +56,9 @@ void test_layer_pool() {
/* Fill pool */ /* Fill pool */
for (i=0; i<GUAC_BUFFER_POOL_INITIAL_SIZE; i++) { for (i=0; i<GUAC_BUFFER_POOL_INITIAL_SIZE; i++) {
/* Allocate and throw away a buffer (should not disturb layer alloc) */
CU_ASSERT_PTR_NOT_NULL_FATAL(guac_client_alloc_buffer(client));
layer = guac_client_alloc_layer(client); layer = guac_client_alloc_layer(client);
/* Index should be within pool size */ /* Index should be within pool size */