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

Bug in RuntimePackageTest.testName test

XMLWordPrintable

    • generic
    • generic

      RuntimePackageTest.testName() test case at [1] runs jpackage command without `--name` option only when bundling .deb installer. It is supposed to run jpackage command without `--name` option for all types of installers. However, on Windows, this is NOT the case. In the test log:
      ---
      [13:47:30.654] TRACE: exec: Execute tool provider [jpackage --dest RuntimePackageTest\testName\output --name NameRuntimePackageTest --type msi --verbose](8); inherit out+err...
      ---

      It is supposed to be:
      ---
      TRACE: exec: Execute tool provider [jpackage --dest RuntimePackageTest\testName\output --type msi --verbose](6); inherit out+err...
      ---

      In other words, the test is not testing the target test case for all but .deb installers.

      [1] https://github.com/openjdk/jdk/blob/e55ddabffa90e28d22f546b387007fe4e434c3e0/test/jdk/tools/jpackage/share/RuntimePackageTest.java#L98

            asemenyuk Alexey Semenyuk
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: