Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8259799

vmTestbase/nsk/jvmti/Breakpoint/breakpoint001 is incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • hotspot
    • None
    • b06

      Test vmTestbase/nsk/jvmti/Breakpoint/breakpoint001 has incorrect check of strcmp results here:

        for (i=0; i<METH_NUM; i++)
              if (strcmp(methNam,METHODS[i][0]) &&
                      strcmp(methSig,METHODS[i][1])) {
                  printf("CHECK PASSED: method name: \"%s\"\tsignature: \"%s\" %d\n",
                         methNam, methSig, i);
                  if (checkStatus == PASSED)
                      bpEvents[i]++;
                  break;
              }

      So test passed when both strcmp (name,sig) are not zero.

      The test passes only because there are 2 methods are checked and it increases counters for "incorrect" methods.

            lmesnik Leonid Mesnik
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: