Ensure buffers do not hurt layer pool.
This commit is contained in:
parent
af490aafbe
commit
1bcc1e7d5a
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user