[ 
https://issues.apache.org/jira/browse/HADOOP-10495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Nauroth updated HADOOP-10495:
-----------------------------------

    Attachment: HADOOP-10495.1.patch

Here is a trivial patch to convert the failing assertions.  I verified this on 
Mac and Windows.

> TestFileUtil fails on Windows due to bad permission assertions.
> ---------------------------------------------------------------
>
>                 Key: HADOOP-10495
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10495
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 3.0.0, 2.4.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>            Priority: Trivial
>         Attachments: HADOOP-10495.1.patch
>
>
> {{TestFileUtil}} contains some assertions that check 
> {{java.io.File#canRead}}.  These assertions fail on Windows.  The 
> {{java.io.File}} methods for checking permissions are known to be buggy in 
> JDK 6.  We can replace these calls with our own custom {{FileUtil#canRead}}, 
> which is correct on all platforms.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to