Simplify process management in jpackage tests

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 27
    • Affects Version/s: 24, 25
    • Component/s: tools
    • master
    • generic
    • generic

      On Windows, jpackage tests use "taskkill" command to terminate child processes [1] and a powershell script to get the list of started app launchers [2], coupled with the script output parsing code that caused JDK-8344275.

      This process management code was added in JDK-8340311. Simplify it by replacing it with java.lang.Process API.

      [1] https://github.com/openjdk/jdk/blob/d433ce52360994be5a88a0bcbf39cbb741b435ec/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/WindowsHelper.java#L310
      [2] https://github.com/openjdk/jdk/blob/d433ce52360994be5a88a0bcbf39cbb741b435ec/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/WindowsHelper.java#L328

            Assignee:
            Alexey Semenyuk
            Reporter:
            Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: