[foreign] RFR 8229122: 4 panama foreign tests fail on Mac OS Mojave

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed Aug 7 09:19:50 UTC 2019


Looks good - a possible improvement would be to define the two constants:

inal static boolean macWithNoUsrInclude = 
System.getProperty("os.name").equals("Mac OS X") &&
+ !Files.isDirectory(Paths.get("/usr/include"));
+ static final String MAC_INCLUDE_ROOT = 
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk";


In a standalone interface/class, and then implement/import it from the 
affected tests, which would avoid the duplicated logic somewhat.

Maurizio


On 07/08/2019 03:02, sundararajan.athijegannathan at oracle.com wrote:
> Please review.
>
> 4 panama foreign tests fail because /usr/include is missing in Mojave. 
> For now, fixing the tests with explicit -I option for SDK header 
> directory.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8229122
>
> Webrev: http://cr.openjdk.java.net/~sundar/8229122/webrev.00/
>
> Thanks,
>
> -Sundar
>


More information about the panama-dev mailing list