Disabled part of IoTest.listFiles on Windows.

This commit is contained in:
Evgeny Gerashchenko
2013-03-04 18:43:30 +04:00
parent 2ac218e084
commit e2a13da325
+6 -4
View File
@@ -129,10 +129,12 @@ class IoTest(){
assertEquals(5, totalFiles)
subdir.setReadable(false)
if (subdir.setReadable(false)) {
// On Windows, we can't make directory not readable, and setReadable() will return false
var totalFilesWithUnReadableDir = 0
dir.recurse { totalFilesWithUnReadableDir++ }
assertEquals(4, totalFilesWithUnReadableDir)
var totalFilesWithUnReadableDir = 0
dir.recurse { totalFilesWithUnReadableDir++ }
assertEquals(4, totalFilesWithUnReadableDir)
}
}
}