fix invalid who.user assertion on win32

This commit is contained in:
Doug MacEachern 2011-04-08 10:48:14 -07:00
parent b8c6325123
commit 692f5a43ea
1 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@ package org.hyperic.sigar.test;
import java.util.Date;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarLoader;
import org.hyperic.sigar.Who;
public class TestWho extends SigarTestCase {
@ -39,7 +40,9 @@ public class TestWho extends SigarTestCase {
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());
}
}
}
}