ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r643274 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/launch/LocatorTest.java
Date Tue, 01 Apr 2008 04:30:27 GMT
Author: bodewig
Date: Mon Mar 31 21:30:25 2008
New Revision: 643274

URL: http://svn.apache.org/viewvc?rev=643274&view=rev
Log:
the path doesn't look that way on Unix

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/launch/LocatorTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/launch/LocatorTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/launch/LocatorTest.java?rev=643274&r1=643273&r2=643274&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/launch/LocatorTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/launch/LocatorTest.java Mon Mar 31
21:30:25 2008
@@ -158,7 +158,9 @@
         assertResolved(SHARED_JAR_URI, LAUNCHER_JAR, resolved, true);
         File f=new File(resolved);
         String path = f.getAbsolutePath();
-        assertTrue(path.indexOf("\\\\")==0);
+        if (windows) {
+            assertEquals(0, path.indexOf("\\\\"));
+        }
     }
 
     public void testHttpURI() throws Exception {



Mime
View raw message