equal
deleted
inserted
replaced
109 |
109 |
110 virtual void OnTestStart(const ::testing::TestInfo& test_info) { |
110 virtual void OnTestStart(const ::testing::TestInfo& test_info) { |
111 const char* name = test_info.name(); |
111 const char* name = test_info.name(); |
112 if (!_is_initialized && is_suffix("_test_vm", name)) { |
112 if (!_is_initialized && is_suffix("_test_vm", name)) { |
113 // we want to have hs_err and core files when we execute regular tests |
113 // we want to have hs_err and core files when we execute regular tests |
114 ASSERT_EQ(0, init_jvm(_argc, _argv, false)) << "Could not initialize the JVM"; |
114 int ret_val = init_jvm(_argc, _argv, false); |
|
115 if (ret_val != 0) { |
|
116 ADD_FAILURE() << "Could not initialize the JVM"; |
|
117 exit(1); |
|
118 } |
115 _is_initialized = true; |
119 _is_initialized = true; |
116 } |
120 } |
117 } |
121 } |
118 }; |
122 }; |
119 |
123 |