From 7af532bd70556c5992b94ae0a252091861a35061 Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 8 May 2010 16:01:16 +0000 Subject: [PATCH] Stop the tests failing git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@942409 13f79535-47bb-0310-9956-ffa450edef68 --- test/org/apache/catalina/startup/TomcatBaseTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/org/apache/catalina/startup/TomcatBaseTest.java b/test/org/apache/catalina/startup/TomcatBaseTest.java index c274176f4..08e5f3811 100644 --- a/test/org/apache/catalina/startup/TomcatBaseTest.java +++ b/test/org/apache/catalina/startup/TomcatBaseTest.java @@ -84,12 +84,12 @@ public abstract class TomcatBaseTest extends TestCase { "org.apache.juli.ClassLoaderLogManager"); tempDir = new File(System.getProperty("tomcat.test.temp", "output/tmp")); - if (!tempDir.mkdir()) { + if (!tempDir.exists() && !tempDir.mkdir()) { fail("Unable to create temporary directory for test"); } File appBase = new File(tempDir, "webapps"); - if (!appBase.mkdir()) { + if (!appBase.exists() && !appBase.mkdir()) { fail("Unable to create appBase for test"); } -- 2.11.0