From 255d7fde9ac1710cc35a32a869c7648d9cb5488d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 16 Jan 2016 13:33:09 +1100 Subject: [PATCH] Ensure native zlib actually loads. --- native/src/test/java/net/md_5/bungee/NativeZlibTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/native/src/test/java/net/md_5/bungee/NativeZlibTest.java b/native/src/test/java/net/md_5/bungee/NativeZlibTest.java index 9287129f..50a23244 100644 --- a/native/src/test/java/net/md_5/bungee/NativeZlibTest.java +++ b/native/src/test/java/net/md_5/bungee/NativeZlibTest.java @@ -20,7 +20,11 @@ public class NativeZlibTest @Test public void doTest() throws DataFormatException { - test( factory.newInstance() ); + if ( NativeCode.isSupported() ) + { + Assert.assertTrue( "Native code failed to load!", factory.load() ); + test( factory.newInstance() ); + } test( new JavaZlib() ); }