提交 39b74d4a 编写于 作者: A alanb

7033824: TEST_BUG: java/nio/file/Files/CopyAndMove.java fails intermittently

Reviewed-by: chegar
上级 9762115d
......@@ -86,10 +86,12 @@ public class CopyAndMove {
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())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册