test/hotspot/gtest/gtestMain.cpp
changeset 48804 8f451978683c
parent 47659 a8e9aff89f7b
child 54851 f67269c129f9
equal deleted inserted replaced
48803:6738bf669314 48804:8f451978683c
   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