Don't run this test on Windows.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f291ec71
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f291ec71
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f291ec71

Branch: refs/heads/LOG4J2-1161
Commit: f291ec711e3acbc09d6026ba7dde682c77e74ba7
Parents: 98bbbf5
Author: ggregory <ggreg...@apache.org>
Authored: Tue Oct 20 15:33:29 2015 -0700
Committer: ggregory <ggreg...@apache.org>
Committed: Tue Oct 20 15:33:29 2015 -0700

----------------------------------------------------------------------
 .../org/apache/logging/log4j/core/util/WatchManagerTest.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f291ec71/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchManagerTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchManagerTest.java
 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchManagerTest.java
index 2b07ae2..b44f894 100644
--- 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchManagerTest.java
+++ 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchManagerTest.java
@@ -16,6 +16,7 @@
  */
 package org.apache.logging.log4j.core.util;
 
+import org.junit.Assume;
 import org.junit.Ignore;
 import org.junit.Test;
 
@@ -43,9 +44,11 @@ public class WatchManagerTest {
     private String originalFile = "target/test-classes/log4j-test1.xml";
     private String newFile = "target/test-classes/log4j-test1.yaml";
 
-    @Ignore
+    private static final boolean IS_WINDOWS = 
System.getProperty("os.name").startsWith("Windows");
+
     @Test
     public void testWatchManager() throws Exception {
+        Assume.assumeFalse(IS_WINDOWS);
         ScheduledExecutorService executorService = new 
ScheduledThreadPoolExecutor(1);
         WatchManager watchManager = new WatchManager();
         watchManager.setIntervalSeconds(1);

Reply via email to