logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1171564 - in /logging/log4net/trunk: src/Appender/FileAppender.cs tests/src/Appender/RollingFileAppenderTest.cs
Date Fri, 16 Sep 2011 13:54:57 GMT
Author: bodewig
Date: Fri Sep 16 13:54:56 2011
New Revision: 1171564

URL: http://svn.apache.org/viewvc?rev=1171564&view=rev
Log:
No named Mutex in Compact Framework

Modified:
    logging/log4net/trunk/src/Appender/FileAppender.cs
    logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs

Modified: logging/log4net/trunk/src/Appender/FileAppender.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Appender/FileAppender.cs?rev=1171564&r1=1171563&r2=1171564&view=diff
==============================================================================
--- logging/log4net/trunk/src/Appender/FileAppender.cs (original)
+++ logging/log4net/trunk/src/Appender/FileAppender.cs Fri Sep 16 13:54:56 2011
@@ -583,6 +583,7 @@ namespace log4net.Appender
 			}
 		}
 
+#if !NETCF
         /// <summary>
         /// Provides cross-process file locking.
         /// </summary>
@@ -686,6 +687,7 @@ namespace log4net.Appender
                 }
             }
         }
+#endif
 
 		#endregion Locking Models
 

Modified: logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs?rev=1171564&r1=1171563&r2=1171564&view=diff
==============================================================================
--- logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs (original)
+++ logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs Fri Sep 16 13:54:56
2011
@@ -1605,6 +1605,7 @@ namespace log4net.Tests.Appender
 			Assert.AreEqual("", sh.Message, "Unexpected error message");
 		}
 
+#if !NETCF
         /// <summary>
         /// Verifies that attempting to log to a locked file fails gracefully
         /// </summary>
@@ -1671,6 +1672,7 @@ namespace log4net.Tests.Appender
             AssertFileEquals(filename, "This is a message" + Environment.NewLine + "Test"
+ Environment.NewLine + "This is a message 2" + Environment.NewLine);
             Assert.AreEqual("", sh.Message, "Unexpected error message");
         }
+#endif
 
         /// <summary>
 		/// Verify that the default LockModel is ExclusiveLock, to maintain backwards compatibility
with previous behaviour



Mime
View raw message