File: test-empty-path.patch

package info (click to toggle)
openjdk-25 25~32ea-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 825,280 kB
  • sloc: java: 5,584,902; cpp: 1,333,941; xml: 1,321,242; ansic: 487,993; asm: 404,003; objc: 21,088; sh: 15,102; javascript: 13,265; python: 8,319; makefile: 2,515; perl: 357; awk: 351; pascal: 103; exp: 83; sed: 72; jsp: 24
file content (35 lines) | stat: -rw-r--r-- 1,341 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: disable tests requiring FileStore
 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.
Author: Vladimir Petko <vladimir.petko@canonical.com>
Bug: https://bugs.openjdk.org/browse/JDK-8166162
Forwarded: not-needed

diff --git a/test/jdk/java/io/File/EmptyPath.java b/test/jdk/java/io/File/EmptyPath.java
index d3211f917..5daa08f0b 100644
--- a/test/jdk/java/io/File/EmptyPath.java
+++ b/test/jdk/java/io/File/EmptyPath.java
@@ -120,7 +120,6 @@ public class EmptyPath {
         }
     }
 
-    @Test
     public void getFreeSpace() throws IOException {
         FileStore fs = Files.getFileStore(f.toPath());
         checkSpace(fs.getUnallocatedSpace(), f.getFreeSpace());
@@ -141,13 +140,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());