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

hs test serviceability/sa/ClhsdbCDSCore.java fails on macOS 10.15

    Details

    • Subcomponent:
      svc
    • Resolved In Build:
      b26
    • CPU:
      x86
    • OS:
      os_x

      Backports

        Description

        The test
        serviceability/sa/ClhsdbCDSCore.java
        fails on macOS 10.15 .
        exception :
        java.lang.Error: cores is not a directory or does not have write permissions
                        at ClhsdbCDSCore.main(ClhsdbCDSCore.java:115)
                        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
                        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
                        at java.base/java.lang.Thread.run(Thread.java:833)

        Looks like the test checks that directory /cores is writable :
        File coresDir = new File("/cores");
        if (!coresDir.isDirectory() || !coresDir.canWrite()) { ... // fail
        However on macOS 10.15 /cores is not writable any more (at least for most users, including our test user).
        So the test fails.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mbaesken Matthias Baesken
                  Reporter:
                  mbaesken Matthias Baesken
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: