From bddacd90ca36937c0574f0b3c2b6f120b6cc2b2a Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 23 Feb 2008 23:15:23 +0000 Subject: [PATCH] TestWho improvements --- .../src/org/hyperic/sigar/test/TestWho.java | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/bindings/java/src/org/hyperic/sigar/test/TestWho.java b/bindings/java/src/org/hyperic/sigar/test/TestWho.java index 2fc7d0b2..0bd4bf09 100644 --- a/bindings/java/src/org/hyperic/sigar/test/TestWho.java +++ b/bindings/java/src/org/hyperic/sigar/test/TestWho.java @@ -18,7 +18,8 @@ package org.hyperic.sigar.test; -import org.hyperic.sigar.OperatingSystem; +import java.util.Date; + import org.hyperic.sigar.SigarException; import org.hyperic.sigar.Who; @@ -29,10 +30,18 @@ public class TestWho extends SigarTestCase { } public void testWho() throws SigarException { - if (OperatingSystem.IS_WIN32) { - return; - } + traceln(""); Who[] who = getSigar().getWhoList(); - assertTrue(who.length > 0); + for (int i=0; i