ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r771714 - /ant/antlibs/svn/trunk/src/tests/junit/org/apache/ant/svn/AbstractSvnTaskTest.java
Date Tue, 05 May 2009 13:21:27 GMT
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) {



Mime
View raw message