From 6cc0af09683d5cc102000523ef414de28b066824 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 6 Jul 2004 00:15:39 +0000 Subject: [PATCH] more testing --- .../hyperic/sigar/test/TestProcModules.java | 31 ++++++++++++++++--- 1 file changed, 26 insertions(+), 5 deletions(-) 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