Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit cbbfdf2

Browse files
committed
Try to avoid running NTEventLogAppenderTest if not on windows.
1 parent 388f462 commit cbbfdf2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public void tearDown() {
4242
* Simple test of NTEventLogAppender.
4343
*/
4444
public void testSimple() {
45+
if (!System.getProperty("os.name").startsWith("Windows")) {
46+
return;
47+
}
48+
4549
BasicConfigurator.configure(new NTEventLogAppender());
4650
Logger logger = Logger.getLogger("org.apache.log4j.nt.NTEventLogAppenderTest");
4751
int i = 0;

0 commit comments

Comments
 (0)