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.
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected