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

TestDiagsLineCaret's outcome depends on jtreg test mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Incomplete
    • Affects Version/s: 17
    • Fix Version/s: 18
    • Component/s: tools

      Description

      The TestDiagsLineCaret test was added in JDK-8267126. I noticed that the test fails locally on my machine, but seems to pass in the mainline CI.

      One difference I found was the test mode: CI seems to use "agentvm", while I use the default mode. So when I run the test like this, it always fails:

      $ jtreg -testjdk:build/macosx-x64/images/jdk/ test/langtools/jdk/javadoc/doclet/testDiagsLineCaret/TestDiagsLineCaret.java
      Test results: failed: 1

      and passes when run like this:

      $ jtreg -agentvm -testjdk:build/macosx-x64/images/jdk/ test/langtools/jdk/javadoc/doclet/testDiagsLineCaret/TestDiagsLineCaret.java
      Test results: passed: 1

        Attachments

          Activity

            People

            Assignee:
            jjg Jonathan Gibbons
            Reporter:
            prappo Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: