test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetCurrentContendedMonitor/contmon003/contmon003.cpp
changeset 52642 9cfc8b0c45fd
parent 51653 b51d348698c2
equal deleted inserted replaced
52641:09a3f379b927 52642:9cfc8b0c45fd
    61     if (res != JNI_OK || jvmti == NULL) {
    61     if (res != JNI_OK || jvmti == NULL) {
    62         printf("Wrong result of a valid call to GetEnv!\n");
    62         printf("Wrong result of a valid call to GetEnv!\n");
    63         return JNI_ERR;
    63         return JNI_ERR;
    64     }
    64     }
    65 
    65 
    66     if ((err = (jvmti->GetCapabilities(&caps))) != JVMTI_ERROR_NONE) {
    66     err = jvmti->GetCapabilities(&caps);
       
    67     if (err != JVMTI_ERROR_NONE) {
    67         printf("(GetCapabilities) unexpected error: %s (%d)\n",
    68         printf("(GetCapabilities) unexpected error: %s (%d)\n",
    68                TranslateError(err), err);
    69                TranslateError(err), err);
    69         return JNI_ERR;
    70         return JNI_ERR;
    70     }
    71     }
    71 
    72