diff --git a/bindings/java/src/net/hyperic/sigar/test/TestProcModules.java b/bindings/java/src/net/hyperic/sigar/test/TestProcModules.java index bfa84edd..61bf76b3 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestProcModules.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestProcModules.java @@ -4,6 +4,7 @@ import java.io.File; import java.util.List; import net.hyperic.sigar.Sigar; +import net.hyperic.sigar.SigarException; import net.hyperic.sigar.SigarNotImplementedException; public class TestProcModules extends SigarTestCase { @@ -12,13 +13,11 @@ public class TestProcModules extends SigarTestCase { super(name); } - public void testCreate() throws Exception { - Sigar sigar = new Sigar(); - - traceln(""); + private void printModules(Sigar sigar, long pid) throws SigarException { + traceln("\npid=" + pid); try { - List modules = sigar.getProcModules(sigar.getPid()); + List modules = sigar.getProcModules(pid); for (int i=0; i