8220793: (fs) No support for changing modification time of symlink
Roger Riggs
Roger.Riggs at oracle.com
Thu May 2 15:47:08 UTC 2019
Looks good.
Thanks, Roger
On 05/02/2019 11:39 AM, Brian Burkhalter wrote:
> Hi,
>
>> On May 2, 2019, at 8:23 AM, Roger Riggs <Roger.Riggs at oracle.com
>> <mailto:Roger.Riggs at oracle.com>> wrote:
>>
>> How about throwing the SkippedException so it shows up in the jtreg
>> summaries as such. [1]
>
> Good idea.
>
> Thanks,
>
> Brian
>
> --- a/test/jdk/java/nio/file/Files/SymlinkTime.java
> +++ b/test/jdk/java/nio/file/Files/SymlinkTime.java
> @@ -26,6 +26,7 @@
> * @summary Unit test for updating access and modification times of
> symlinks
> * @requires (os.family == "linux" | os.family == "mac" | os.family ==
> "windows")
> * @library ..
> + * @library /test/lib
> * @build SymlinkTime
> * @run main/othervm SymlinkTime
> */
> @@ -38,9 +39,14 @@
> import java.nio.file.attribute.BasicFileAttributeView;
> import java.nio.file.attribute.FileTime;
>
>
> +import jtreg.SkippedException;
> +
> public class SymlinkTime {
> public static void main(String[] args) throws IOException {
> Path dir = TestUtil.createTemporaryDirectory();
> + if (!TestUtil.supportsLinks(dir))
> + throw new SkippedException("Links not supported: skipping
> test");
> +
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190502/c0a9f40a/attachment-0001.html>
More information about the nio-dev
mailing list