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

serviceability/dcmd/gc/HeapInfoTest.java should be more robust

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • svc

      The jtreg test for the jcmd "GC.heap_info" is currently limited in that it doesn't check for any substantial information when checking the output of the command. JDK-8356848 improved the test marginally by checking for the "used" string, which is common among all GCs. Since each GC have a unique approach to printing the heap, the test requires a different approach. A good starting point might be to take inspiration from the hsdb test serviceability/sa/TestUniverse.java.

      The affected test:
      test/hotspot/jtreg/serviceability/dcmd/gc/HeapInfoTest.java

            Unassigned Unassigned
            jsikstro Joel Sikstrom
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: