You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2007/03/05 10:25:51 UTC
[jira] Commented: (HARMONY-2157) [classlib][luni]not able to make a
directory whose length is greater than 248
[ https://issues.apache.org/jira/browse/HARMONY-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477955 ]
Tony Wu commented on HARMONY-2157:
----------------------------------
Thank Paulex.
verified at r514596.
> [classlib][luni]not able to make a directory whose length is greater than 248
> -----------------------------------------------------------------------------
>
> Key: HARMONY-2157
> URL: https://issues.apache.org/jira/browse/HARMONY-2157
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Tony Wu
> Assigned To: Paulex Yang
> Attachments: harmony-2157-2.diff, harmony-2157-test.diff, harmony-2157-test.diff, harmony-2157.diff, harmony-2157.diff, luni.diff, portlib.diff
>
>
> This testcase passed on RI but failed on harmony
> public void testLongPath() throws IOException {
> File dir = new File(".");
> String longDirName = "abcdefghijklmnopqrstuvwx";// 24 chars
> StringBuilder sb = new StringBuilder(dir + File.separator);
> while (dir.getCanonicalPath().length() < 256 - longDirName.length()) {
> sb.append(longDirName + File.separator);
> dir = new File(sb.toString());
> assertTrue("mkdir failed", dir.mkdir() && dir.exists());
> dir.deleteOnExit();
> }
> while (dir.getCanonicalPath().length() < 256) {
> sb.append(0);
> dir = new File(sb.toString());
> assertTrue("mkdir " + dir.getCanonicalPath().length() + " failed",
> dir.mkdir() && dir.exists());
> dir.deleteOnExit();
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.