[LOGBack-dev] svn commit: r528 - logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic

noreply.ceki at qos.ch noreply.ceki at qos.ch
Thu Sep 7 23:58:49 CEST 2006


Author: ceki
Date: Thu Sep  7 23:58:49 2006
New Revision: 528

Added:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/TestThread.java
Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/MDCTest.java
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PackageTest.java

Log:
Apprently, linux does not like it when a thread class is defined in another one.

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/MDCTest.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/MDCTest.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/MDCTest.java	Thu Sep  7 23:58:49 2006
@@ -27,23 +27,3 @@
   }
   
 }
-
-class TestThread extends Thread {
-  
-  String val;
-  TestThread(String val) {
-    this.val = val;
-  }
-  String x0;
-  String x1;
-  String x2;
-  
-  public void run() {
-    x0 = MDC.get("x");
-    MDC.put("x", val);
-    x1 = MDC.get("x");
-    MDC.clear();
-    x2 = MDC.get("x");
-    System.out.println("Exiting "+val);
-  }
-}
\ No newline at end of file

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PackageTest.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PackageTest.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PackageTest.java	Thu Sep  7 23:58:49 2006
@@ -20,6 +20,7 @@
     suite.addTestSuite(PatternLayoutTest.class);
     suite.addTestSuite(BasicLoggerTest.class);
     suite.addTestSuite(MessageFormattingTest.class);
+    suite.addTestSuite(MDCTest.class);
     return suite;
   }
 }
\ No newline at end of file

Added: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/TestThread.java
==============================================================================
--- (empty file)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/TestThread.java	Thu Sep  7 23:58:49 2006
@@ -0,0 +1,21 @@
+package ch.qos.logback.classic;
+
+class TestThread extends Thread {
+  
+  String val;
+  TestThread(String val) {
+    this.val = val;
+  }
+  String x0;
+  String x1;
+  String x2;
+  
+  public void run() {
+    x0 = MDC.get("x");
+    MDC.put("x", val);
+    x1 = MDC.get("x");
+    MDC.clear();
+    x2 = MDC.get("x");
+    System.out.println("Exiting "+val);
+  }
+} 
\ No newline at end of file



More information about the logback-dev mailing list