[foreign[ RFR: 8208270: jclang-ffi test need to ignore non class files

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Thu Jul 26 08:53:02 UTC 2018


Looks good

-Sundar

On 26/07/18, 11:43 AM, Henry Jen wrote:
> Hi,
>
> Please review the following trivial patch to fix jclang-ffi test, which failed because of change in JDK-8207351.
>
> diff -r e74cb875f0e9 test/jdk/com/sun/tools/jextract/jclang-ffi/TestJextractFFI.java
> --- a/test/jdk/com/sun/tools/jextract/jclang-ffi/TestJextractFFI.java   Wed Jul 25 22:51:29 2018 -0700
> +++ b/test/jdk/com/sun/tools/jextract/jclang-ffi/TestJextractFFI.java   Wed Jul 25 23:11:10 2018 -0700
> @@ -152,6 +152,10 @@
>                   throw new Error("Mismatch file type: " + pathJNI.getFileName()
>                           + " vs " + pathFFI.getFileName());
>               }
> +            // ignore non-class files
> +            if (!pathJNI.getFileName().endsWith("class")) {
> +                continue;
> +            }
>               // Classfile
>               if (! Arrays.equals(
>                       Files.readAllBytes(pathJNI),
>
> Cheers,
> Henry
>


More information about the panama-dev mailing list