From: markt Date: Thu, 30 Jul 2009 07:01:13 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47568 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=922e5dc51530f7de03a8d7e726d6a6b51a50a773;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47568 Create the tmp dir where intended Remove it when we are done git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@799187 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/startup/TestTomcat.java b/test/org/apache/catalina/startup/TestTomcat.java index 667fa2156..9fba9777b 100644 --- a/test/org/apache/catalina/startup/TestTomcat.java +++ b/test/org/apache/catalina/startup/TestTomcat.java @@ -54,12 +54,12 @@ public class TestTomcat extends TestCase { public void setUp() throws Exception { t0 = System.currentTimeMillis(); - tempDir = new File("output/tmp"); + tempDir = new File(base + "output/tmp"); tempDir.mkdir(); tomcat = new Tomcat(); - tomcat.getHost().setAppBase(tempDir.getAbsolutePath()); tomcat.setBaseDir(tempDir.getAbsolutePath()); + tomcat.getHost().setAppBase(tempDir.getAbsolutePath() + "/webapps"); // If each test is running on same port - they // may interfere with each other (on unix at least) @@ -71,6 +71,7 @@ public class TestTomcat extends TestCase { tomcat.stop(); System.err.println("Test time: " + (System.currentTimeMillis() - t0)); + ExpandWar.delete(tempDir); } /**