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

Add windows equivalent for getpid test

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: repo-panama
    • Component/s: tools
    • Labels:

      Description

      getpid is a posix function that is not part of the C standard, so we can not use it to test with on Windows.

      We can add a Windows equivalent of this test calling GetCurrentProcess [1], and GetProcessId [2].

      [1] : https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-getcurrentprocess
      [2] : https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-getprocessid

        Attachments

          Activity

            People

            • Assignee:
              jvernee Jorn Vernee
              Reporter:
              jvernee Jorn Vernee
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: