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:04:56 UTC
cvs commit: incubator-geronimo/modules/transaction/src/test/org/apache/geronimo/transaction/manager HOWLLogRecoveryTest.java
dain 2004/09/06 00:04:56
Modified: modules/transaction/src/test/org/apache/geronimo/transaction/manager
HOWLLogRecoveryTest.java
Log:
Fixed the problems introduced by forking the tests
Revision Changes Path
1.6 +5 -4 incubator-geronimo/modules/transaction/src/test/org/apache/geronimo/transaction/manager/HOWLLogRecoveryTest.java
Index: HOWLLogRecoveryTest.java
===================================================================
RCS file: /home/cvs/incubator-geronimo/modules/transaction/src/test/org/apache/geronimo/transaction/manager/HOWLLogRecoveryTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- HOWLLogRecoveryTest.java 28 Jul 2004 02:12:57 -0000 1.5
+++ HOWLLogRecoveryTest.java 6 Sep 2004 07:04:56 -0000 1.6
@@ -32,6 +32,7 @@
*
* */
public class HOWLLogRecoveryTest extends AbstractRecoveryTest {
+ private static final File basedir = new File(System.getProperty("basedir", System.getProperty("user.dir")));
private static final String LOG_FILE_NAME = "howl_test_";
public void test2Again() throws Exception {
@@ -64,7 +65,7 @@
2, // "maxLogFiles",
2, // "minBuffers",
10,// "threadsWaitingForceThreshold"});
- new ServerInfo("target")
+ new ServerInfo(new File(basedir, "target").getAbsolutePath())
);
howlLog.doStart();
txLog = howlLog;
@@ -83,11 +84,11 @@
public static Test suite() {
return new TestSetup(new TestSuite(HOWLLogRecoveryTest.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();
}