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