ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r399528 - /ant/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AntUnitTest.java
Date Thu, 04 May 2006 03:35:02 GMT
Author: bodewig
Date: Wed May  3 20:35:00 2006
New Revision: 399528

URL: http://svn.apache.org/viewcvs?rev=399528&view=rev
Log:
Make test pass on Windows

Modified:
    ant/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AntUnitTest.java

Modified: ant/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AntUnitTest.java
URL: http://svn.apache.org/viewcvs/ant/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AntUnitTest.java?rev=399528&r1=399527&r2=399528&view=diff
==============================================================================
--- ant/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AntUnitTest.java (original)
+++ ant/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AntUnitTest.java Wed May
 3 20:35:00 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright  2005 The Apache Software Foundation
+ * Copyright 2005-2006 The Apache Software Foundation
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -34,7 +34,9 @@
         String log = getLog();
         int index = log.indexOf("Build File: ");
         assertTrue("start recorded", index > -1);
-        index = log.indexOf("/src/etc/testcases/antunit/base.xml", index);
+        index = log.indexOf("/src/etc/testcases/antunit/base.xml"
+                            .replace('/', java.io.File.separatorChar),
+                            index);
         assertTrue("file name", index > -1);
         index = log.indexOf("Tests run: 5, Failures: 1, Errors: 1, Time "
                             + "elapsed: ", index);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message