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

Using env of JAVA_TOOL_OPTIONS and _JAVA_OPTIONS causing some jtreg test failures

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: None
    • Component/s: other-libs
    • Labels:
      None

      Description

      For JTREG tests, when collecting code coverage with JCov (JDK-8215729), tests run with env:
      JAVA_TOOL_OPTIONS=<options>
      _JAVA_OPTIONS=<options>

      And it prints:

      Picked up JAVA_TOOL_OPTIONS: <options>
      Picked up _JAVA_OPTIONS: <options>

      to stderr.

      Test that expects stderr either to be empty or it must match the given patterns then fail due to extra unexpected message (above) in stderr.

      Please note that it's NOT possible to suppress the message of Picked up _JAVA_OPTIONS and JAVA_TOOL_OPTIONS, see JDK-8039152

      To make test "pass", we have to tolerate these warnings in test. It's better enhancement can be done to
      jdk.test.lib.process.OutputAnalyzer

      either by improving
      OutputAnalyzer::stderrShouldBeEmptyIgnoreVMWarnings
      and/or introduce similar method to take care the mentioned message.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shurailine Aleksandre Iline
                Reporter:
                amlu Amy Lu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: