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

Commit

Permalink
Try to avoid running NTEventLogAppenderTest if not on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
lsimons committed Dec 17, 2021
1 parent 388f462 commit cbbfdf2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public void tearDown() {
* Simple test of NTEventLogAppender.
*/
public void testSimple() {
if (!System.getProperty("os.name").startsWith("Windows")) {
return;
}

BasicConfigurator.configure(new NTEventLogAppender());
Logger logger = Logger.getLogger("org.apache.log4j.nt.NTEventLogAppenderTest");
int i = 0;
Expand Down

0 comments on commit cbbfdf2

Please sign in to comment.