diff options
author | Craig Tiller <ctiller@google.com> | 2016-11-17 14:07:45 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-11-17 14:07:45 -0800 |
commit | 7885d1abe7565a67834fa3badfed83890a7613db (patch) | |
tree | 1587180db0873f7b382dfaaaed8af7d51ad072f9 /test/core | |
parent | 58317fcc8900bc0dceb78b397bc14fc026eff035 (diff) |
Initial fixes
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/end2end/fuzzers/api_fuzzer.c | 3 | ||||
-rw-r--r-- | test/core/iomgr/ev_epoll_linux_test.c | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/test/core/end2end/fuzzers/api_fuzzer.c b/test/core/end2end/fuzzers/api_fuzzer.c index a43941b396..c9d5c24798 100644 --- a/test/core/end2end/fuzzers/api_fuzzer.c +++ b/test/core/end2end/fuzzers/api_fuzzer.c @@ -107,6 +107,9 @@ static char *read_string(input_stream *inp, bool *special) { if (special != NULL) { *special = (c == 1); } + if (c == 1) { + str[sz-1] = 0; + } return str; } diff --git a/test/core/iomgr/ev_epoll_linux_test.c b/test/core/iomgr/ev_epoll_linux_test.c index 564b05d7f4..81e9fe855e 100644 --- a/test/core/iomgr/ev_epoll_linux_test.c +++ b/test/core/iomgr/ev_epoll_linux_test.c @@ -236,7 +236,12 @@ int main(int argc, char **argv) { "strategy. and the current strategy is: '%s'", poll_strategy); } - grpc_iomgr_shutdown(); + + { + grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; + grpc_iomgr_shutdown(&exec_ctx); + grpc_exec_ctx_finish(&exec_ctx); + } return 0; } #else /* defined(GRPC_LINUX_EPOLL) */ |