harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r765033 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java
Date Wed, 15 Apr 2009 01:50:24 GMT
Author: ndbeyer
Date: Wed Apr 15 01:50:23 2009
New Revision: 765033

URL: http://svn.apache.org/viewvc?rev=765033&view=rev
Log:
tweak test to avoid canonicalization on windows

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=765033&r1=765032&r2=765033&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 Apr 15 01:50:23 2009
@@ -112,7 +112,7 @@
     public void test_ConstructorLjava_io_FileLjava_lang_String2() throws IOException {
         File f = new File((File)null, "input.tst");
         assertEquals("Created Incorrect File", 
-                addTrailingSlash(new File(".").getCanonicalPath()) + "input.tst", 
+                new File("input.tst").getAbsolutePath(), 
                 f.getAbsolutePath());
     }
     



Mime
View raw message