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

Update PmemTest to run on AMD64

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3 P3
    • 25
    • None
    • core-libs
    • Cause Known

      Need to look at
      java/nio/MappedByteBuffer/PmemTest.java

      The vendor initially skipped it in JDK24 ATR - do we need to convert the default to be AMD64?

      the PmemTest has two test runs, one for default OS and then alternative which has @ignore set

      /* @test
       * @summary Testing NVRAM mapped byte buffer support
       * @run main/manual PmemTest
       * @requires (os.family == "linux")
       * @requires (os.arch == "x86_64")
       */

      /* @test
       * @summary Testing NVRAM mapped byte buffer support
       * @run main/manual PmemTest
       * @requires (os.family == "linux")
       * @requires ((os.arch == "amd64")|(os.arch == "aarch64")|(os.arch == "ppc64le"))
       * @ignore The test described here is currently disabled on systems that are not
       * x64-based and lack an external NVRAM memory device. In order to re-enable the
       * test, you will need to mount the NVRAM device, which will typically appear as
       * /dev/pmem0, to the directory /mnt/pmem. Once that is done, you can follow the
       * instructions above to create a test directory and remove the ignore tag.
       */

      As IMT default linux OS arch == amd64, the question is to either change the default run
      /* @test
       * @summary Testing NVRAM mapped byte buffer support
       * @run main/manual PmemTest
       * @requires (os.family == "linux")
       * @requires (os.arch == "amd64")
       */

      or revert to a single test, as was previously in place, deleting the first @test and removing the @ignore in the second.

      /* @test
       * @summary Testing NVRAM mapped byte buffer support
       * @run main/manual PmemTest
       * @requires (os.family == "linux")
       * @requires ((os.arch == "amd64")|(os.arch == "aarch64")|(os.arch == "ppc64le")|(os.arch == "x86_64"))
       * In order to enable the
       * test, you will need to mount the NVRAM device, which will typically appear as
       * /dev/pmem0, to the directory /mnt/pmem. Once that is done, you can follow the
       * instructions above to create a test directory and remove the ignore tag.
       */


            isipka Ivan Sipka
            dboyle Dermot Boyle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: