< prev index next >
test/jdk/com/sun/tools/jextract/TestUpcall.java
Print this page
*** 91,103 ****
@Factory
public Object[] getTests() throws ReflectiveOperationException {
List<UpcallTest> res = new ArrayList<>();
for (int i = 0 ; i < MAX_CODE ; i++) {
Path clzPath = getOutputFilePath("libTestUpcall.jar");
! checkSuccess(null,"-o", clzPath.toString(),
"--exclude-symbols", filterFor(i),
! getInputFilePath("libTestUpcall.h").toString());
Class<?> headerCls = loadClass("libTestUpcall", clzPath);
Object lib = Libraries.bind(headerCls, Libraries.loadLibrary(MethodHandles.lookup(), "TestUpcall"));
res.add(new UpcallTest(headerCls, lib));
}
if(res.isEmpty())
--- 91,103 ----
@Factory
public Object[] getTests() throws ReflectiveOperationException {
List<UpcallTest> res = new ArrayList<>();
for (int i = 0 ; i < MAX_CODE ; i++) {
Path clzPath = getOutputFilePath("libTestUpcall.jar");
! run("-o", clzPath.toString(),
"--exclude-symbols", filterFor(i),
! getInputFilePath("libTestUpcall.h").toString()).checkSuccess();
Class<?> headerCls = loadClass("libTestUpcall", clzPath);
Object lib = Libraries.bind(headerCls, Libraries.loadLibrary(MethodHandles.lookup(), "TestUpcall"));
res.add(new UpcallTest(headerCls, lib));
}
if(res.isEmpty())
< prev index next >