8232178: MacVolumesTest failed after upgrade to MacOS Catalina

Brian Burkhalter brian.burkhalter at oracle.com
Thu Nov 7 01:32:54 UTC 2019

For [1], the change [2] is proposed. The constant DATA_VOLUME is for context only and is not part of the patch. The test was looking for DATA_VOLUME/tmp, which is not guaranteed to exist, instead of DATA_VOLUME/private/tmp, which should.



[1] https://bugs.openjdk.java.net/browse/JDK-8232178

    private static final String DATA_VOLUME = "/System/Volumes/Data";

--- a/test/jdk/java/nio/file/etc/MacVolumesTest.java
+++ b/test/jdk/java/nio/file/etc/MacVolumesTest.java
@@ -109,7 +109,7 @@
     private static final void checkDataVolume() throws IOException {
         System.out.format("--- Checking data volume %s ---%n", DATA_VOLUME);
-        Path data = Path.of(DATA_VOLUME, "tmp");
+        Path data = Path.of(DATA_VOLUME, "private", "tmp");
         if (Files.getFileStore(data).isReadOnly()) {
             throw new RuntimeException("Data volume is read-only");

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191106/7c1451af/attachment.html>

More information about the nio-dev mailing list