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

SA: Enable jhsdb jtreg tests for Mac OS X

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 11
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      Is there a way we can enable the jhsdb tests like open/test/hotspot/jtreg/serviceability/sa tests on Mac?

      If I run it right now I get:

      ----------System.out:(1/47)----------
      SA attach not expected to work - test skipped.
      ----------System.err:(1/15)----------
      STATUS:Passed.

      because the test is skipped, since we don't run them as root, as determined in /test/lib/jdk/test/lib/Platform.java:

          private static boolean canAttachOSX() {
              return userName.equals("root");
          }

      It would be useful to have the tests actually running on Mac OS X, for greater coverage (assuming jhsdb is supported on Mac)

      This applies to running the test via Mach5 and locally using "/jtreg/bin/jtreg ...", though locally one can run it as "sudo /jtreg/bin/jtreg ..." and it will indeed execute, but this should be done by default somehow (if possible).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cjplummer Chris Plummer
                Reporter:
                gziemski Gerard Ziemski
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: