windows fix

This commit is contained in:
Doug MacEachern 2004-12-11 21:11:41 +00:00
parent 23fbb1c8ce
commit e2be44cf1c
1 changed files with 11 additions and 2 deletions

View File

@ -31,8 +31,17 @@ public class TestFileSystem extends SigarTestCase {
assertLengthTrace("TypeName", fs.getTypeName()); assertLengthTrace("TypeName", fs.getTypeName());
assertLengthTrace("SysTypeName", fs.getSysTypeName()); assertLengthTrace("SysTypeName", fs.getSysTypeName());
FileSystemUsage usage = FileSystemUsage usage;
sigar.getFileSystemUsage(fs.getDirName());
try {
usage = sigar.getFileSystemUsage(fs.getDirName());
} catch (SigarException e) {
if (fs.getType() == FileSystem.TYPE_LOCAL_DISK) {
throw e;
}
//else ok, e.g. floppy drive on windows
continue;
}
switch (fs.getType()) { switch (fs.getType()) {
case FileSystem.TYPE_LOCAL_DISK: case FileSystem.TYPE_LOCAL_DISK: