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

Henry Jen henry.jen at oracle.com
Thu Jul 26 06:13:58 UTC 2018


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