Make test pass on Windows

git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@399528 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Bodewig 2006-05-04 03:35:00 +00:00
parent c2c373f758
commit cfedbaaf14
1 changed files with 4 additions and 2 deletions

View File

@ -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 @@ public class AntUnitTest extends BuildFileTest {
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);