You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2009/05/05 15:21:27 UTC

svn commit: r771714 - /ant/antlibs/svn/trunk/src/tests/junit/org/apache/ant/svn/AbstractSvnTaskTest.java

Author: bodewig
Date: Tue May  5 13:21:27 2009
New Revision: 771714

URL: http://svn.apache.org/viewvc?rev=771714&view=rev
Log:
Make test independent of client on Windows

Modified:
    ant/antlibs/svn/trunk/src/tests/junit/org/apache/ant/svn/AbstractSvnTaskTest.java

Modified: ant/antlibs/svn/trunk/src/tests/junit/org/apache/ant/svn/AbstractSvnTaskTest.java
URL: http://svn.apache.org/viewvc/ant/antlibs/svn/trunk/src/tests/junit/org/apache/ant/svn/AbstractSvnTaskTest.java?rev=771714&r1=771713&r2=771714&view=diff
==============================================================================
--- ant/antlibs/svn/trunk/src/tests/junit/org/apache/ant/svn/AbstractSvnTaskTest.java (original)
+++ ant/antlibs/svn/trunk/src/tests/junit/org/apache/ant/svn/AbstractSvnTaskTest.java Tue May  5 13:21:27 2009
@@ -55,7 +55,8 @@
         // on the version of the command line client
         executeTarget("revision-attribute");
         String log = getLog();
-        int buildFileIndex = log.indexOf("trunk/build.xml");
+        int buildFileIndex = Math.max(log.indexOf("trunk/build.xml"),
+                                      log.indexOf("trunk\\build.xml"));
         assertTrue("expected message about build.xml, log was: " + log,
                    buildFileIndex > -1);
         for (int i = buildFileIndex - 1; i > -1; --i) {