aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util/one_corpus_entry_fuzzer.cc
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-12-06 09:05:05 -0800
committerGravatar GitHub <noreply@github.com>2017-12-06 09:05:05 -0800
commitad4d2dde0052efbbf49d64b0843c45f0381cfeb3 (patch)
tree6a657f8c6179d873b34505cdc24bce9462ca68eb /test/core/util/one_corpus_entry_fuzzer.cc
parenta3df36cc2505a89c2f481eea4a66a87b3002844a (diff)
Revert "All instances of exec_ctx being passed around in src/core removed"
Diffstat (limited to 'test/core/util/one_corpus_entry_fuzzer.cc')
-rw-r--r--test/core/util/one_corpus_entry_fuzzer.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/core/util/one_corpus_entry_fuzzer.cc b/test/core/util/one_corpus_entry_fuzzer.cc
index c745eb5dc6..c0b67da1e2 100644
--- a/test/core/util/one_corpus_entry_fuzzer.cc
+++ b/test/core/util/one_corpus_entry_fuzzer.cc
@@ -18,10 +18,7 @@
#include <stdbool.h>
-#include <grpc/grpc.h>
-
#include <grpc/support/log.h>
-#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/iomgr/load_file.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size);
@@ -33,15 +30,10 @@ int main(int argc, char** argv) {
grpc_slice buffer;
squelch = false;
leak_check = false;
- /* TODO(yashkt) Calling grpc_init breaks tests. Fix the tests and replace
- * grpc_core::ExecCtx::GlobalInit with grpc_init and GlobalShutdown with
- * grpc_shutdown */
GPR_ASSERT(
GRPC_LOG_IF_ERROR("load_file", grpc_load_file(argv[1], 0, &buffer)));
LLVMFuzzerTestOneInput(GRPC_SLICE_START_PTR(buffer),
GRPC_SLICE_LENGTH(buffer));
- grpc_core::ExecCtx::GlobalInit();
grpc_slice_unref(buffer);
- grpc_core::ExecCtx::GlobalShutdown();
return 0;
}