windows fix
This commit is contained in:
parent
23fbb1c8ce
commit
e2be44cf1c
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue