You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2018/10/03 18:40:50 UTC
[7/8] logging-log4net git commit: Added Mutex.Close to support net2.0
Added Mutex.Close to support net2.0
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/e0b97826
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/e0b97826
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/e0b97826
Branch: refs/heads/feature/rfa-configurable-rolling-mutex
Commit: e0b978268856a08557e4a3f565a2130a6d46a7c6
Parents: 122eb73
Author: Andrei Stryia <An...@epam.com>
Authored: Mon Oct 1 21:42:43 2018 +0300
Committer: Andrei Stryia <An...@epam.com>
Committed: Mon Oct 1 21:42:43 2018 +0300
----------------------------------------------------------------------
tests/src/Appender/RollingFileAppenderTest.cs | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/e0b97826/tests/src/Appender/RollingFileAppenderTest.cs
----------------------------------------------------------------------
diff --git a/tests/src/Appender/RollingFileAppenderTest.cs b/tests/src/Appender/RollingFileAppenderTest.cs
index a56c3e3..afe9634 100644
--- a/tests/src/Appender/RollingFileAppenderTest.cs
+++ b/tests/src/Appender/RollingFileAppenderTest.cs
@@ -1820,7 +1820,7 @@ namespace log4net.Tests.Appender
syncObject.WaitOne();
// Logger should acquire Mutex in different thread
- var loggerThread = new Thread
+ Thread loggerThread = new Thread
(
delegate(object o)
{
@@ -1850,7 +1850,13 @@ namespace log4net.Tests.Appender
finally
{
if (syncObject != null)
+ {
+#if NET_4_0 || MONO_4_0 || NETSTANDARD1_3
syncObject.Dispose();
+#else
+ syncObject.Close();
+#endif
+ }
}
}
#endif