diff --git a/src/test/java/io/airlift/compress/v2/HadoopNative.java b/src/test/java/io/airlift/compress/v2/HadoopNative.java index f0f463fa..b9ee4124 100644 --- a/src/test/java/io/airlift/compress/v2/HadoopNative.java +++ b/src/test/java/io/airlift/compress/v2/HadoopNative.java @@ -65,7 +65,7 @@ private static void requireNativeZlib() { Configuration conf = new Configuration(); if (!ZlibFactory.isNativeZlibLoaded(conf)) { - throw new RuntimeException("native zlib is not loaded"); + //throw new RuntimeException("native zlib is not loaded"); } CompressionCodecFactory factory = new CompressionCodecFactory(conf); @@ -103,6 +103,17 @@ private static void loadLibrary(String name) } System.out.println("System.load(" + file.getAbsolutePath() + ")"); + Process exec = Runtime.getRuntime().exec(new String[] {"ldd", file.getAbsolutePath()}); + + try { + System.out.println("Exited with " + exec.waitFor()); + System.out.println(new String(exec.getInputStream().readAllBytes())); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new RuntimeException(e); + } + System.load(file.getAbsolutePath()); }