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

TestOptionsWithRanges test only ever uses the default collector

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b109

      Description

      The test in runtime/CommandLine/OptionsValidation/TestOptionsWithRanges checks ranges of command line options. It ever only does so with the default collector, ignoring any collectors set on the command line.

      This is problematic, because this means that functionality that is only implemented for collectors other than the default collector is never even tested. Bugs like JDK-8144573 that are only found by accident with the current scheme, and show that this leads to a highly reduced test coverage.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ddmitriev Dmitry Dmitriev
              Reporter:
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: