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

vmTestbase/nsk/jvmti/Breakpoint/breakpoint001 is incorrect

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: