From 0db4482217c55ba05aacedfe6d6bbf1b0a5e42b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bl=C3=A4sing?= Date: Wed, 15 Jun 2022 00:20:04 +0200 Subject: [PATCH] X --- contrib/platform/test/com/sun/jna/platform/unix/LibCTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/platform/test/com/sun/jna/platform/unix/LibCTest.java b/contrib/platform/test/com/sun/jna/platform/unix/LibCTest.java index c8714b4f88..6b6a81a0d3 100644 --- a/contrib/platform/test/com/sun/jna/platform/unix/LibCTest.java +++ b/contrib/platform/test/com/sun/jna/platform/unix/LibCTest.java @@ -84,10 +84,10 @@ public void testGethostnameGetdomainname() { LibC.INSTANCE.gethostname(buffer, buffer.length); String hostname = Native.toString(buffer); System.out.println("Hostname: " + hostname); - assertNotNull(hostname.length() > 0); + assertNotNull(hostname); LibC.INSTANCE.getdomainname(buffer, buffer.length); String domainname = Native.toString(buffer); System.out.println("Domainname: " + domainname); - assertNotNull(domainname.length() > 0); + assertNotNull(domainname); } }