# HG changeset patch # User alanb # Date 1346412337 -3600 # Node ID a7901d690bde44905edc8cffc00ad60e0a768d46 # Parent eed7a42e5ea86b122885819f70621243b8456db5 7033824: TEST_BUG: java/nio/file/Files/CopyAndMove.java fails intermittently Reviewed-by: chegar diff -r eed7a42e5ea8 -r a7901d690bde jdk/test/java/nio/file/Files/CopyAndMove.java --- a/jdk/test/java/nio/file/Files/CopyAndMove.java Fri Aug 31 12:25:29 2012 +0100 +++ b/jdk/test/java/nio/file/Files/CopyAndMove.java Fri Aug 31 12:25:37 2012 +0100 @@ -86,10 +86,12 @@ assertTrue(attrs1.isSymbolicLink() == attrs2.isSymbolicLink()); assertTrue(attrs1.isOther() == attrs2.isOther()); - // check last modified time - long time1 = attrs1.lastModifiedTime().toMillis(); - long time2 = attrs2.lastModifiedTime().toMillis(); - assertTrue(time1 == time2); + // check last modified time if not a symbolic link + if (!attrs1.isSymbolicLink()) { + long time1 = attrs1.lastModifiedTime().toMillis(); + long time2 = attrs2.lastModifiedTime().toMillis(); + assertTrue(time1 == time2); + } // check size if (attrs1.isRegularFile())