Skip to content

Commit

Permalink
TestBasicFeatures: applied API changes for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pavly-gerges committed Jul 26, 2024
1 parent 531381c commit e41a04e
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import electrostatic.snaploader.platform.util.DefaultDynamicLibraries;
import electrostatic.snaploader.platform.NativeDynamicLibrary;
import electrostatic.snaploader.platform.util.NativeVariant;
import electrostatic.snaploader.platform.util.PlatformPredicate;
import electrostatic.snaploader.platform.util.PropertiesProvider;
import electrostatic.snaploader.LoadingCriterion;

Expand All @@ -49,8 +50,8 @@
*/
public final class TestBasicFeatures {

protected static final LibraryInfo libraryInfo = new LibraryInfo(getJarFilePath(),
null,
protected static final LibraryInfo libraryInfo = new LibraryInfo(getJarFilePath(),
"lib/placeholder",
getLibraryBaseName(),
getLibrariesAbsolutePath());

Expand All @@ -59,8 +60,8 @@ public final class TestBasicFeatures {
public static final NativeDynamicLibrary[] libraries = new NativeDynamicLibrary[] {
DefaultDynamicLibraries.LINUX_X86,
DefaultDynamicLibraries.LINUX_X86_64,
DefaultDynamicLibraries.WIN_X86,
DefaultDynamicLibraries.WIN_X86_64,
new NativeDynamicLibrary("lib/windows/x86", "jmealloc.dll", PlatformPredicate.WIN_X86),
new NativeDynamicLibrary("lib/windows/x86", "jmealloc.dll", PlatformPredicate.WIN_X86),
DefaultDynamicLibraries.MAC_X86,
DefaultDynamicLibraries.MAC_X86_64,
};
Expand All @@ -84,7 +85,7 @@ protected static void printDetails(NativeBinaryLoader loader) {
System.out.println("VM: " + NativeVariant.JVM.getProperty());
System.out.println("--------------------------------------------------------------");
System.out.println("Jar Path: " + loader.getNativeDynamicLibrary().getJarPath());
System.out.println("Library Directory: " + loader.getNativeDynamicLibrary().getLibraryDirectory());
System.out.println("Library Directory: " + loader.getNativeDynamicLibrary().getPlatformDirectory());
System.out.println("Compressed library path: " + loader.getNativeDynamicLibrary().getCompressedLibrary());
System.out.println("Extracted library absolute path: " + loader.getNativeDynamicLibrary().getExtractedLibrary());
System.out.println("Is Extracted: " + loader.getNativeDynamicLibrary().isExtracted());
Expand Down

0 comments on commit e41a04e

Please sign in to comment.