8220793: (fs) No support for changing modification time of symlink
Brian Burkhalter
brian.burkhalter at oracle.com
Thu May 2 15:39:04 UTC 2019
Hi,
> On May 2, 2019, at 8:23 AM, Roger Riggs <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/af30c1ed/attachment.html>
More information about the nio-dev
mailing list