You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2017/06/20 23:39:25 UTC

logging-log4j2 git commit: TEMP JUnit Assume to only run this test on Windows.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 5bdb64d8a -> c16cfdb60


TEMP JUnit Assume to only 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/c16cfdb6
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/c16cfdb6
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/c16cfdb6

Branch: refs/heads/master
Commit: c16cfdb6012e41251538be399e3369389fdf8094
Parents: 5bdb64d
Author: Gary Gregory <gg...@apache.org>
Authored: Tue Jun 20 16:39:23 2017 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Tue Jun 20 16:39:23 2017 -0700

----------------------------------------------------------------------
 .../logging/log4j/core/appender/FilePermissionsTest.java  | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c16cfdb6/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/FilePermissionsTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/FilePermissionsTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/FilePermissionsTest.java
index 3c1a68b..b8b8d9d 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/FilePermissionsTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/FilePermissionsTest.java
@@ -29,6 +29,7 @@ import java.nio.file.attribute.PosixFilePermissions;
 import java.util.Arrays;
 import java.util.Collection;
 
+import org.apache.commons.lang3.SystemUtils;
 import org.apache.logging.log4j.Level;
 import org.apache.logging.log4j.core.Layout;
 import org.apache.logging.log4j.core.LogEvent;
@@ -38,6 +39,8 @@ import org.apache.logging.log4j.junit.CleanFiles;
 import org.apache.logging.log4j.message.SimpleMessage;
 import org.junit.AfterClass;
 import org.junit.Assert;
+import org.junit.Assume;
+import org.junit.BeforeClass;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -60,6 +63,13 @@ public class FilePermissionsTest {
               // @formatter:on
     }
 
+    @BeforeClass
+    public static void beforeClass() {
+        // TEMP
+        // TODO Fix on non-Windows.
+        Assume.assumeTrue(SystemUtils.IS_OS_WINDOWS);
+    }
+
     private final boolean createOnDemand;
     private final String filePermissions;