tools/jar tests need to tolerate unrelated warnings

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 11
    • Component/s: tools
    • jar
    • b05

      Discovered during JDK 11 version update testing when VM obsoletion warnings are enabled.

      tools/jar/LeadingGarbage.java
      tools/jar/modularJar/Basic.java
      tools/jar/multiRelease/ApiValidatorTest.java
      tools/jar/multiRelease/Basic.java

      E.g.

      test LeadingGarbage.test_canExtract(): failure
      java.lang.RuntimeException: '\\A\\Z' missing from stderr

      at jdk.testlibrary.OutputAnalyzer.stderrShouldMatch(OutputAnalyzer.java:260)
      at LeadingGarbage.createNormalZip(LeadingGarbage.java:82)
      at LeadingGarbage.test_canExtract(LeadingGarbage.java:119)

            Assignee:
            Xueming Shen
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: