MCPcopy Create free account
hub / github.com/CodeIntelligenceTesting/jazzer / SetUpTestCase

Method SetUpTestCase

launcher/jvm_tooling_test.cpp:35–44  ·  view source on GitHub ↗

After DestroyJavaVM() no new JVM instance can be created in the same process, so we set up a single JVM instance for this test binary which gets destroyed after all tests in this test suite have finished.

Source from the content-addressed store, hash-verified

33 // process, so we set up a single JVM instance for this test binary which gets
34 // destroyed after all tests in this test suite have finished.
35 static void SetUpTestCase() {
36 FLAGS_jvm_args =
37 "-Denv1=va\\" ARG_SEPARATOR "l1\\\\" ARG_SEPARATOR "-Denv2=val2";
38 using ::bazel::tools::cpp::runfiles::Runfiles;
39 std::unique_ptr<Runfiles> runfiles(Runfiles::CreateForTest());
40 FLAGS_cp = runfiles->Rlocation(
41 "jazzer/launcher/testdata/fuzz_target_mocks_deploy.jar");
42
43 jvm_ = std::unique_ptr<JVM>(new JVM());
44 }
45
46 static void TearDownTestCase() { jvm_.reset(nullptr); }
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected