Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_GetBooleanArrayElements_1)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetBooleanArrayElements_1  )

Definition at line 40 of file GetBooleanArrayElements_1.cpp.

{
  GET_JNI_FOR_TEST

  jbooleanArray arr = env->NewBooleanArray(5);

  jboolean isCopy = JNI_TRUE;
  jboolean *val = env->GetBooleanArrayElements(NULL, &isCopy);
  printf("Function GetBooleanArrayElements(NULL, isCopy) is not crushed!\n\n");
  if(val==NULL){
     return TestResult::PASS("GetBooleanArrayElements(NULL, NOT_NULL) returns correct value");
  }else{
     return TestResult::FAIL("GetBooleanArrayElements(NULL, NOT_NULL) returns incorrect value");
  }

}

Here is the call graph for this function: