From 2d9c51242af126cca8238c4f2b6f0e8b13a25c25 Mon Sep 17 00:00:00 2001 From: Craig Tiller <ctiller@google.com> Date: Tue, 17 Feb 2015 11:41:46 -0800 Subject: [PATCH] Add mixed shutdown/init test --- test/core/surface/multi_init_test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/core/surface/multi_init_test.c b/test/core/surface/multi_init_test.c index 3607c42453..dced882574 100644 --- a/test/core/surface/multi_init_test.c +++ b/test/core/surface/multi_init_test.c @@ -44,10 +44,20 @@ static void test(int rounds) { } } +static void test_mixed() { + grpc_init(); + grpc_init(); + grpc_shutdown(); + grpc_init(); + grpc_shutdown(); + grpc_shutdown(); +} + int main(int argc, char **argv) { grpc_test_init(argc, argv); test(1); test(2); test(3); + test_mixed(); return 0; } -- GitLab