8220793: (fs) No support for changing modification time of symlink
Alan Bateman
Alan.Bateman at oracle.com
Thu May 2 15:10:43 UTC 2019
On 02/05/2019 16:03, Brian Burkhalter wrote:
>
> --- a/test/jdk/java/nio/file/Files/SymlinkTime.java
> +++ b/test/jdk/java/nio/file/Files/SymlinkTime.java
> @@ -41,6 +41,12 @@
> public class SymlinkTime {
> public static void main(String[] args) throws IOException {
> Path dir = TestUtil.createTemporaryDirectory();
> + if (System.getProperty("os.name").startsWith("Windows") &&
> + !TestUtil.supportsLinks(dir)) {
> + System.out.println("Windows: links not supported -
> skipping test");
> + return;
> + }
> +
>
Yes but no need to check os.name. You'll see examples in other tests.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190502/b0208ec3/attachment.html>
More information about the nio-dev
mailing list