X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-ust-java-tests-log4j%2Fsrc%2Ftest%2Fjava%2Forg%2Flttng%2Fust%2Fagent%2Fintegration%2Fevents%2FLog4jListEventsIT.java;h=7c1effa054f09fd67daf547e8b24c5193c3ed436;hb=9d06e3eb07ead1ec21411259823a758375a912be;hp=c7be8c84affb373f32a7cecade2b874cbdea72c4;hpb=b342ee75b8f1dd103fc049095de6e1242fc119a6;p=lttng-ust-java-tests.git diff --git a/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jListEventsIT.java b/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jListEventsIT.java index c7be8c8..7c1effa 100644 --- a/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jListEventsIT.java +++ b/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jListEventsIT.java @@ -21,6 +21,7 @@ package org.lttng.ust.agent.integration.events; import java.io.IOException; import org.apache.log4j.Appender; +import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import org.junit.After; import org.junit.AfterClass; @@ -62,6 +63,10 @@ public class Log4jListEventsIT extends ListEventsITBase { */ @Before public void log4jSetup() throws SecurityException, IOException { + /* Try clearing the log4j logger configuration */ + LogManager.resetConfiguration(); + System.gc(); + loggers = new Logger[] { Logger.getLogger(LOGGER_NAME_1), Logger.getLogger(LOGGER_NAME_2),