26 * @library .. 27 * @modules jdk.jextract 28 * @build SystemHeadersTest 29 * 30 * @run testng/othervm SystemHeadersTest 31 */ 32 33 import org.testng.annotations.*; 34 35 import java.io.IOException; 36 import java.nio.file.Files; 37 import java.nio.file.Path; 38 39 import static org.testng.Assert.*; 40 41 public class SystemHeadersTest extends JextractToolRunner { 42 43 @Test 44 public void testNoFollowSystemHeaders() throws IOException { 45 Path clzPath = getOutputFilePath("out"); 46 checkSuccess(null, "-d", clzPath.toString(), 47 getInputFilePath("foo.h").toString()); 48 assertEquals(Files.list(clzPath). 49 filter(p -> p.toString().endsWith("class")).count(), 1); 50 } 51 } | 26 * @library .. 27 * @modules jdk.jextract 28 * @build SystemHeadersTest 29 * 30 * @run testng/othervm SystemHeadersTest 31 */ 32 33 import org.testng.annotations.*; 34 35 import java.io.IOException; 36 import java.nio.file.Files; 37 import java.nio.file.Path; 38 39 import static org.testng.Assert.*; 40 41 public class SystemHeadersTest extends JextractToolRunner { 42 43 @Test 44 public void testNoFollowSystemHeaders() throws IOException { 45 Path clzPath = getOutputFilePath("out"); 46 run("-d", clzPath.toString(), 47 getInputFilePath("foo.h").toString()).checkSuccess(); 48 assertEquals(Files.list(clzPath). 49 filter(p -> p.toString().endsWith("class")).count(), 1); 50 } 51 } |