Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
normanmaurer committed Oct 31, 2024
1 parent c805592 commit 7bd58ec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ public class NativeTest {
@Test
public void loadNativeLib() throws Exception {
String testClassesRoot = NativeTest.class.getProtectionDomain().getCodeSource().getLocation().getFile();
File f = new File(testClassesRoot + File.separator + "META-INF" + File.separator + "native");
File[] directories = new File(testClassesRoot + File.separator + "META-INF" + File.separator + "native")
.listFiles();
if (directories == null || directories.length != 1) {
throw new IllegalStateException("Could not find platform specific native directory");
throw new IllegalStateException("Could not find platform specific native directory: " + f);
}
String libName = System.mapLibraryName("netty_tcnative")
// Fix the filename (this is needed for macOS).
Expand Down

0 comments on commit 7bd58ec

Please sign in to comment.