ClhsdbCDSCore jtreg test fails on OSX
Jaikiran Pai
jai.forums2013 at gmail.com
Mon Nov 4 14:49:12 UTC 2019
On 04/11/19 8:11 PM, Jaikiran Pai wrote:
> ...
> Looking at the testcase itself, I see this
> http://hg.openjdk.java.net/jdk/jdk/file/6f98d0173a72/test/hotspot/jtreg/serviceability/sa/ClhsdbCDSCore.java#l112
>
> if (Platform.isOSX()) {
>
> File coresDir = new File("/cores");
>
> if (!coresDir.isDirectory() || !coresDir.canWrite()) {
>
> throw new Error("cores is not a directory or does not have write
> permissions");
>
>
> I'm on OSX. So this test expects a directory called "cores" at the root
> of the filesystem? That looks odd. I don't have any such directory.
Correction - I do have that directory (my "ls" command that I previously
used to check had a typo), but that /cores directory is owned by "root"
and the test is running as a regular user.
-Jaikiran
More information about the hotspot-dev
mailing list