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