[logback-dev] svn commit: r1171 - in logback/trunk: logback-access/src/test/java/ch/qos/logback/access/db logback-access/src/test/java/ch/qos/logback/access/jetty logback-classic/src/test/java/ch/qos/logback/classic/db logback-core/src/test/java/ch/qos/logback/core/joran/action
noreply.seb at qos.ch
noreply.seb at qos.ch
Mon Jan 8 14:58:17 CET 2007
Author: seb
Date: Mon Jan 8 14:58:17 2007
New Revision: 1171
Modified:
logback/trunk/logback-access/src/test/java/ch/qos/logback/access/db/DBAppenderTestBase.java
logback/trunk/logback-access/src/test/java/ch/qos/logback/access/jetty/JettyTestSetup.java
logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/db/DBAppenderTestBase.java
logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/PropertyActionTest.java
Log:
Concurrency problems should be solved
Removed call to StatusPrinter in PropertyActionTest.java
Modified: logback/trunk/logback-access/src/test/java/ch/qos/logback/access/db/DBAppenderTestBase.java
==============================================================================
--- logback/trunk/logback-access/src/test/java/ch/qos/logback/access/db/DBAppenderTestBase.java (original)
+++ logback/trunk/logback-access/src/test/java/ch/qos/logback/access/db/DBAppenderTestBase.java Mon Jan 8 14:58:17 2007
@@ -50,7 +50,8 @@
e.printStackTrace();
System.out.println(this + ".setUp() error: " + e.getMessage());
}
-
+ Thread.yield();
+
createTables();
}
Modified: logback/trunk/logback-access/src/test/java/ch/qos/logback/access/jetty/JettyTestSetup.java
==============================================================================
--- logback/trunk/logback-access/src/test/java/ch/qos/logback/access/jetty/JettyTestSetup.java (original)
+++ logback/trunk/logback-access/src/test/java/ch/qos/logback/access/jetty/JettyTestSetup.java Mon Jan 8 14:58:17 2007
@@ -66,6 +66,8 @@
context.addHandler(handler);
server.start();
+
+ Thread.yield();
}
public void tearDown() throws Exception {
Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/db/DBAppenderTestBase.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/db/DBAppenderTestBase.java (original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/db/DBAppenderTestBase.java Mon Jan 8 14:58:17 2007
@@ -51,7 +51,8 @@
e.printStackTrace();
System.out.println(this + ".setUp() error: " + e.getMessage());
}
-
+ Thread.yield();
+
createTables();
}
Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/PropertyActionTest.java
==============================================================================
--- logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/PropertyActionTest.java (original)
+++ logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/PropertyActionTest.java Mon Jan 8 14:58:17 2007
@@ -8,7 +8,6 @@
import ch.qos.logback.core.joran.spi.InterpretationContext;
import ch.qos.logback.core.status.ErrorStatus;
import ch.qos.logback.core.util.Constants;
-import ch.qos.logback.core.util.StatusPrinter;
public class PropertyActionTest extends TestCase {
@@ -79,7 +78,6 @@
public void testLoadNotPossible() {
atts.setValue("file", "toto");
spAction.begin(ec, null, atts);
- StatusPrinter.print(context);
assertEquals(2, context.getStatusManager().getCount());
assertTrue(checkFileErrors());
}
More information about the logback-dev
mailing list