diff options
author | Craig Tiller <ctiller@google.com> | 2016-09-22 15:39:40 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-09-22 15:39:40 -0700 |
commit | fe4f0012c641f5d4322e7afb098a731dd81aa467 (patch) | |
tree | d167227a4ea81a3d4cb02f5d6654f0597f25cb56 /test | |
parent | 0b13fcdab2a387cdd87018d1b25aa3c1ee471acf (diff) |
Add resize test
Diffstat (limited to 'test')
-rw-r--r-- | test/core/iomgr/buffer_pool_test.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/core/iomgr/buffer_pool_test.c b/test/core/iomgr/buffer_pool_test.c index 670ca0acfa..8855fe3ab3 100644 --- a/test/core/iomgr/buffer_pool_test.c +++ b/test/core/iomgr/buffer_pool_test.c @@ -42,10 +42,18 @@ static void test_no_op(void) { grpc_buffer_pool_unref(grpc_buffer_pool_create()); } +static void test_resize_then_destroy(void) { + gpr_log(GPR_DEBUG, "** test_resize_then_destroy **"); + grpc_buffer_pool *p = grpc_buffer_pool_create(); + grpc_buffer_pool_resize(p, 1024 * 1024); + grpc_buffer_pool_unref(p); +} + int main(int argc, char **argv) { grpc_test_init(argc, argv); grpc_init(); test_no_op(); + test_resize_then_destroy(); grpc_shutdown(); return 0; } |