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

[Testbug] Improve TestGetSwapSpaceSize

    XMLWordPrintable

    Details

    • Resolved In Build:
      b16
    • OS:
      linux

      Backports

        Description

        JDK-8242480 introduced a test for verifying that swap space size doesn't become negative. The premise is that if --memory and --memory-swap are set to the same value (i.e. no swap), the OperatingSystemMXBean should not return negative values.

        However the test might spuriously pass if, for some reason, the host values get returned by the OperatingSystemMXBean. Since the test always runs in a container environment this should not happen and the test should fail.

        The test needs to get improved to fail if some strange swap sizes are being returned. E.g. --memory X --memory-swap X, but OperatingSystemMXBean.getTotalSwapSpaceSize > 0.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sgehwolf Severin Gehwolf
                Reporter:
                sgehwolf Severin Gehwolf
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: