logging-log4j2
logging-log4j2 copied to clipboard
Various tests abuse static state that no longer works
Description
There are numerous tests that abuse static state, system properties, and implicit startup ordering, and I've had to disable them for now as my attempts at porting them to use appropriate test extension functionality is not working with the way these tests were written. Most of them are in log4j-1.2-api:
AutoConfigTestCategoryTestLoggerTestMapRewriteAppenderTestPropertiesRollingWithPropertiesTestRewriteAppenderTestXmlConfigurationTestXmlRollingWithPropertiesTest
In log4j-core, I also had to disable the following:
Log4jLogEventNanoTimeTestThreadContextDataInjectorTest
I'm documenting these all here so that they are not forgotten.
Edit: note that this is related to https://github.com/apache/logging-log4j2/issues/1977.