You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by da...@apache.org on 2004/09/06 09:24:56 UTC
cvs commit: incubator-geronimo/modules/transaction/src/test/org/apache/geronimo/transaction/log HOWLLogTest.java
dain 2004/09/06 00:24:56
Modified: modules/transaction/src/test/org/apache/geronimo/transaction/log
HOWLLogTest.java
Log:
Fixed the problems introduced by forking the tests
Revision Changes Path
1.4 +5 -4 incubator-geronimo/modules/transaction/src/test/org/apache/geronimo/transaction/log/HOWLLogTest.java
Index: HOWLLogTest.java
===================================================================
RCS file: /home/cvs/incubator-geronimo/modules/transaction/src/test/org/apache/geronimo/transaction/log/HOWLLogTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HOWLLogTest.java 25 Jun 2004 21:29:34 -0000 1.3
+++ HOWLLogTest.java 6 Sep 2004 07:24:56 -0000 1.4
@@ -32,6 +32,7 @@
*
* */
public class HOWLLogTest extends AbstractLogTest {
+ private static final File basedir = new File(System.getProperty("basedir", System.getProperty("user.dir")));
private static final String LOG_FILE_NAME = "howl_test";
@@ -58,7 +59,7 @@
2, // "maxLogFiles",
2, // "minBuffers",
10,// "threadsWaitingForceThreshold"});
- new ServerInfo("target")
+ new ServerInfo(new File(basedir, "target").getAbsolutePath())
);
howlLog.doStart();
return howlLog;
@@ -66,11 +67,11 @@
public static Test suite() {
return new TestSetup(new TestSuite(HOWLLogTest.class)) {
protected void setUp() throws Exception {
- File logFile = new File("target/" + LOG_FILE_NAME + "_1.log");
+ File logFile = new File(basedir, "target/" + LOG_FILE_NAME + "_1.log");
if (logFile.exists()) {
logFile.delete();
}
- logFile = new File("target/" + LOG_FILE_NAME + "_2.log");
+ logFile = new File(basedir, "target/" + LOG_FILE_NAME + "_2.log");
if (logFile.exists()) {
logFile.delete();
}