From ae063a90196c1ac6404b13e8391700fe439bc9df Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 11 Apr 2008 03:33:07 +0000 Subject: [PATCH] test sockets/cores > 0 --- bindings/java/src/org/hyperic/sigar/test/TestCpuInfo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/java/src/org/hyperic/sigar/test/TestCpuInfo.java b/bindings/java/src/org/hyperic/sigar/test/TestCpuInfo.java index 73ef8f0d..cc842167 100644 --- a/bindings/java/src/org/hyperic/sigar/test/TestCpuInfo.java +++ b/bindings/java/src/org/hyperic/sigar/test/TestCpuInfo.java @@ -40,6 +40,8 @@ public class TestCpuInfo extends SigarTestCase { traceln("model=" + info.getModel()); traceln("mhz=" + info.getMhz()); traceln("cache size=" + info.getCacheSize()); + assertGtZeroTrace("totalSockets", info.getTotalSockets()); + assertGtZeroTrace("totalCores", info.getTotalCores()); assertTrue(info.getTotalSockets() <= info.getTotalCores()); }