From cfedbaaf14009e51fc989b6d0781f36f229e416d Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 4 May 2006 03:35:00 +0000 Subject: [PATCH] Make test pass on Windows git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@399528 13f79535-47bb-0310-9956-ffa450edef68 --- src/testcases/org/apache/ant/antunit/AntUnitTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/testcases/org/apache/ant/antunit/AntUnitTest.java b/src/testcases/org/apache/ant/antunit/AntUnitTest.java index acdbca3..ace77d1 100644 --- a/src/testcases/org/apache/ant/antunit/AntUnitTest.java +++ b/src/testcases/org/apache/ant/antunit/AntUnitTest.java @@ -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);