]> dgit.raspbian.org Git - openjdk-25.git/commitdiff
disable tests requiring FileStore
authorVladimir Petko <vladimir.petko@canonical.com>
Wed, 22 Jul 2026 00:23:02 +0000 (12:23 +1200)
committerVladimir Petko <vladimir.petko@canonical.com>
Wed, 22 Jul 2026 00:23:02 +0000 (12:23 +1200)
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/jdk/java/io/File/EmptyPath.java

index 374a69c79591bc821eb0b60969b0cd1e3aea277a..f1a75493aaff595716fe1c96ef727981fefd894f 100644 (file)
@@ -140,7 +140,6 @@ public class EmptyPath {
         }
     }
 
-    @Test
     public void getFreeSpace() throws IOException {
         FileStore fs = Files.getFileStore(f.toPath());
         checkSpace(fs.getUnallocatedSpace(), f.getFreeSpace());
@@ -166,13 +165,11 @@ public class EmptyPath {
         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());