harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lvj...@apache.org
Subject svn commit: r727328 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java
Date Wed, 17 Dec 2008 09:51:36 GMT
Author: lvjing
Date: Wed Dec 17 01:51:35 2008
New Revision: 727328

URL: http://svn.apache.org/viewvc?rev=727328&view=rev
Log:
Apply patch for HARMONY-6041, [classlib][portlib] incorrect parse path contains special unicode
charactor

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java?rev=727328&r1=727327&r2=727328&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java
Wed Dec 17 01:51:35 2008
@@ -1851,6 +1851,23 @@
     }
 
     /**
+     * @tests java.io.File#mkdir()
+     *
+     * HARMONY-6041
+     */
+    public void test_mkdir_special_unicode() throws IOException {
+        tempDirectory = new File("\u5C73");
+        int i = 0;
+        while (tempDirectory.exists()) {
+            tempDirectory = new File("\u5C73" + i);
+            ++i;
+        }
+        assertFalse(tempDirectory.exists());
+        assertTrue(tempDirectory.mkdir());
+        assertTrue(tempDirectory.exists());
+    }
+
+    /**
      * @tests java.io.File#mkdirs()
      */
     public void test_mkdirs() {



Mime
View raw message