Make test independent of client on Windows
authorStefan Bodewig <bodewig@apache.org>
Tue, 5 May 2009 13:21:27 +0000 (13:21 +0000)
committerStefan Bodewig <bodewig@apache.org>
Tue, 5 May 2009 13:21:27 +0000 (13:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/svn/trunk@771714 13f79535-47bb-0310-9956-ffa450edef68

src/tests/junit/org/apache/ant/svn/AbstractSvnTaskTest.java

index 2b3956d..b118139 100644 (file)
@@ -55,7 +55,8 @@ public class AbstractSvnTaskTest extends BuildFileTest {
         // 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) {