Bug: https://bugs.openjdk.org/browse/JDK-
8166162
Forwarded: not-needed
FileStore tests fail in container infrastructure due to JDK-
8166162.
This patch disables individual test cases requiring FileStore.
The patch is not needed upstream as the bug only occurs in specific
container configuration.
Gbp-Pq: Name test-empty-path.patch
}
}
- @Test
public void getFreeSpace() throws IOException {
FileStore fs = Files.getFileStore(f.toPath());
checkSpace(fs.getUnallocatedSpace(), f.getFreeSpace());
assertEquals(p.toString(), f.getPath());
}
- @Test
public void getTotalSpace() throws IOException {
FileStore fs = Files.getFileStore(f.toPath());
checkSpace(fs.getTotalSpace(), f.getTotalSpace());
}
- @Test
public void getUsableSpace() throws IOException {
FileStore fs = Files.getFileStore(f.toPath());
checkSpace(fs.getUsableSpace(), f.getUsableSpace());