Back to index

lightning-sunbird  0.9+nobinonly
Functions
GetJavaVM_1.cpp File Reference
#include "JNIEnvTests.h"
#include "JavaVMInterface.h"

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_GetJavaVM_1)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetJavaVM_1  )

Definition at line 40 of file GetJavaVM_1.cpp.

{
  GET_JNI_FOR_TEST

  JavaVM **vm;
  jint value = env->GetJavaVM(NULL);
  if( (int)value < 0) {
     return TestResult::PASS("GetJavaVM work properly with NULL as JavaVM **");
  }else{
     return TestResult::FAIL("GetJavaVM does not work properly with NULL as JavaVM **");
  }


}

Here is the call graph for this function: