diff --git a/tests/native/CreateVM.cpp b/tests/native/CreateVM.cpp index 8fa80a50d3..571652ad12 100644 --- a/tests/native/CreateVM.cpp +++ b/tests/native/CreateVM.cpp @@ -35,8 +35,8 @@ int main() if (numVms >= 0) { - std::cout << "JNI_GetCreatedJavaVMs returned with an already created JVM"; << std::endl; - return; + std::cout << "JNI_GetCreatedJavaVMs returned with an already created JVM" << std::endl; + return 1; } JavaVMInitArgs vm_args; /* JDK/JRE 6 VM initialization arguments */