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

Fix issues uncovered after running jpackage tests locally with installing test packages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • 25
    • tools
    • master
    • generic
    • generic

      When running jpackage tests locally, the following issues were uncovered in jpackage test lib:

       - LinuxHelper: a regression from JDK-8354988. Before the JDK-8354988 fix, when a process started with Executor didn't write to stdout, Executor.executeAndGetFirstLineOfOutput() returned an empty string; after the fix, it throws an exception.

       - EmptyFolderTest: when an MSI is installed, it can create empty directories. Empty directories are not created only when it is unpacked.

       - PackageTest.Group works incorrectly when a test runs jpackage to produce both exe and msi packages, and when they are installed. This fails WinUpgradeUUIDTest.

      Additionally (caught the eye in the test source code):

       - PathGroupTest.testNullId() test case is missing @Test annotation.

       - PListReaderTest: a typo - STRING_ARRY. Should be STRING_ARRAY.

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

              Created:
              Updated:
              Resolved: