Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_NewLongArray_2)

Function Documentation

JNI_OJIAPITest ( JNIEnv_NewLongArray_2  )

Definition at line 40 of file NewLongArray_2.cpp.

{
  GET_JNI_FOR_TEST

  jlongArray arr = env->NewLongArray(-5);

  if(arr==NULL){
     return TestResult::PASS("NewLongArray(-5) returns correct value");
  }else{
     return TestResult::FAIL("NewLongArray(-5) returns incorrect value");
  }


}

Here is the call graph for this function: