ClhsdbCDSCore jtreg test fails on OSX

Daniel D. Daugherty daniel.daugherty at oracle.com
Mon Nov 4 16:40:22 UTC 2019


Moving this thread over to serviceability-dev at ... since this question is
about Serviceability Agent tests... Bcc'ing hotspot-dev at ... so folks know
that the thread moved...


On 11/4/19 9:49 AM, Jaikiran Pai wrote:
> 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

$ ls -ld /cores
drwxrwxr-t  2 root  admin  64 Nov  4 09:22 /cores/

so the directory on my macOSX machine is writable by group 'admin'
and my login happens to belong to group 'admin'.

Dan


More information about the serviceability-dev mailing list