test/jdk/java/nio/file/etc/MacVolumesTest.java
changeset 58975 19744a63c295
parent 58276 1e57d3774190
equal deleted inserted replaced
58974:2b0f2fe82735 58975:19744a63c295
   107         }
   107         }
   108     }
   108     }
   109 
   109 
   110     private static final void checkDataVolume() throws IOException {
   110     private static final void checkDataVolume() throws IOException {
   111         System.out.format("--- Checking data volume %s ---%n", DATA_VOLUME);
   111         System.out.format("--- Checking data volume %s ---%n", DATA_VOLUME);
   112         Path data = Path.of(DATA_VOLUME, "tmp");
   112         Path data = Path.of(DATA_VOLUME, "private", "tmp");
   113         if (Files.getFileStore(data).isReadOnly()) {
   113         if (Files.getFileStore(data).isReadOnly()) {
   114             throw new RuntimeException("Data volume is read-only");
   114             throw new RuntimeException("Data volume is read-only");
   115         }
   115         }
   116 
   116 
   117         Path tempDir = Files.createTempDirectory(data, "tempDir");
   117         Path tempDir = Files.createTempDirectory(data, "tempDir");