test/hotspot/jtreg/vmTestbase/nsk/jvmti/ClassLoad/classload001/classload001.cpp
changeset 52642 9cfc8b0c45fd
parent 52495 52be2c714a2f
child 52949 c78a17d24618
equal deleted inserted replaced
52641:09a3f379b927 52642:9cfc8b0c45fd
   118     if (!NSK_JVMTI_VERIFY(jvmti_env->GetClassSignature(klass, &sig, &generic))) {
   118     if (!NSK_JVMTI_VERIFY(jvmti_env->GetClassSignature(klass, &sig, &generic))) {
   119         result = STATUS_FAILED;
   119         result = STATUS_FAILED;
   120         NSK_COMPLAIN0("TEST FAILURE: unable to obtain a class signature\n");
   120         NSK_COMPLAIN0("TEST FAILURE: unable to obtain a class signature\n");
   121     }
   121     }
   122 
   122 
   123     if ((i = findSig(sig, 1)) != -1) {
   123     i = findSig(sig, 1);
       
   124     if (i != -1) {
   124         clsEvents[i]++;
   125         clsEvents[i]++;
   125         NSK_DISPLAY1("CHECK PASSED: ClassLoad event received for the class \"%s\" as expected\n",
   126         NSK_DISPLAY1("CHECK PASSED: ClassLoad event received for the class \"%s\" as expected\n",
   126             sig);
   127             sig);
   127     }
   128     }
   128     else if ((i = findSig(sig, 0)) != -1) {
   129     else {
       
   130       i = findSig(sig, 0);
       
   131       if (i != -1) {
   129         result = STATUS_FAILED;
   132         result = STATUS_FAILED;
   130         primClsEvents[i]++;
   133         primClsEvents[i]++;
   131         NSK_COMPLAIN1(
   134         NSK_COMPLAIN1(
   132             "TEST FAILED: JVMTI_EVENT_CLASS_LOAD event received for\n"
   135             "TEST FAILED: JVMTI_EVENT_CLASS_LOAD event received for\n"
   133             "\t a primitive class/array of primitive types with the signature \"%s\"\n",
   136             "\t a primitive class/array of primitive types with the signature \"%s\"\n",
   134             sig);
   137             sig);
       
   138       }
   135     }
   139     }
   136 
   140 
   137     unlock(jvmti_env, env);
   141     unlock(jvmti_env, env);
   138 }
   142 }
   139 /************************/
   143 /************************/