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

[TEST_BUG] com/sun/management/OperatingSystemMXBean/TestTotalSwap.sh fails on OS X with exit code 2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 7, 9
    • core-svc

        com/sun/management/OperatingSystemMXBean/TestTotalSwap.sh

        ----------messages:(3/121)----------
        command: shell TestTotalSwap.sh
        reason: User specified action: run shell TestTotalSwap.sh
        elapsed time (seconds): 0.014
        ----------System.out:(0/0)----------
        ----------System.err:(0/0)----------

        test result: Failed. Execution failed: exit code 2

        This happens on several OS X 10.10.* machines. Checked the machine:
        $ /usr/sbin/sysctl -n vm.swapusage
        total = 0.00M used = 0.00M free = 0.00M (encrypted)

        And in this case, test will just fail at:
             Darwin )
               # $ sysctl -n vm.swapusage
               # total = 8192.00M used = 7471.11M free = 720.89M (encrypted)
               swap=`/usr/sbin/sysctl -n vm.swapusage | awk '{ print $3 }' | awk -F . '{ print $1 }'` || exit 2

        OS X may have swap disabled, in this case, should test skip itself (and pass) instead of exit 2?

              jbachorik Jaroslav Bachorík
              amlu Amy Lu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: