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

DockerTestUtils::execute shows incorrect elapsed time

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b25

      Description

      DockerTestUtils::execute calculates the elapsed time without waiting for the child process to finish execution:

      https://github.com/openjdk/jdk/blob/704b9a66bba0dc8adb62be80fd62864b9c687c3f/test/lib/jdk/test/lib/containers/docker/DockerTestUtils.java#L282

      The fix is to call output.getStdout() first, which waits for the child process to finish execution.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iklam Ioi Lam
              Reporter:
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: