aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-02-17 11:41:46 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-02-17 11:41:46 -0800
commit2d9c51242af126cca8238c4f2b6f0e8b13a25c25 (patch)
tree597b8fe8262a299500bc3bd48fa909931b32f280 /test/core
parent35108f65279cb46c2948dd5c8a57867f3206620d (diff)
Add mixed shutdown/init test
Diffstat (limited to 'test/core')
-rw-r--r--test/core/surface/multi_init_test.c10
1 files changed, 10 insertions, 0 deletions
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;
}