Skip to content

Commit

Permalink
fix invalid who.user assertion on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
dougm committed Apr 8, 2011
1 parent b8c6325 commit 692f5a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bindings/java/src/org/hyperic/sigar/test/TestWho.java
Expand Up @@ -19,6 +19,7 @@
import java.util.Date;

import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarLoader;
import org.hyperic.sigar.Who;

public class TestWho extends SigarTestCase {
Expand All @@ -39,7 +40,9 @@ public void testWho() throws SigarException {
who[i].getDevice() + "\t" +
new Date(who[i].getTime() * 1000) + "\t" +
host);
assertLengthTrace("user", who[i].getUser());
if (!SigarLoader.IS_WIN32) {
assertLengthTrace("user", who[i].getUser());
}
}
}
}

0 comments on commit 692f5a4

Please sign in to comment.