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

The processes started by the tests should be properly killed on timeout

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
      None

      Description

      The correct pattern to start/wait/kill process is used in the
      test/jdk/javax/swing/UI/UnninstallUIMemoryLeaks/UnninstallUIMemoryLeaks.java
      ......
                          tasks.add(runProcess(laf));
      ......
                  for (Process p : tasks) {
                      if (!p.waitFor(end - System.nanoTime(), TimeUnit.NANOSECONDS)) {
                          p.destroyForcibly();
                      }
                  }
                  for (Process task : tasks) {
                      new OutputAnalyzer(task).shouldHaveExitValue(0)
                                              .stderrShouldBeEmpty();
                  }

        Attachments

          Activity

            People

            • Assignee:
              serb Sergey Bylokhov
              Reporter:
              serb Sergey Bylokhov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: