Author: tschoening Date: Thu Mar 24 15:09:49 2016 New Revision: 1736451 URL: http://svn.apache.org/viewvc?rev=1736451&view=rev Log: errorhandlertestcase failed in Linux, I guess because :x.log is a valid file name there. That's not the case under e.g. NTFS and from my understanding the prupose of the PRIMARY appender is simply to fail to be used because of an invalid file name and trigger FALLBACK that way. If that fails and logigng into :x.log succeeds, the test fails. So I changed the file name to use to ".", which should be invalid in most cases.
Modified: incubator/log4cxx/trunk/src/test/resources/input/xml/fallback1.xml Modified: incubator/log4cxx/trunk/src/test/resources/input/xml/fallback1.xml URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/test/resources/input/xml/fallback1.xml?rev=1736451&r1=1736450&r2=1736451&view=diff ============================================================================== --- incubator/log4cxx/trunk/src/test/resources/input/xml/fallback1.xml (original) +++ incubator/log4cxx/trunk/src/test/resources/input/xml/fallback1.xml Thu Mar 24 15:09:49 2016 @@ -27,8 +27,9 @@ <appender-ref ref="FALLBACK" /> </errorHandler> - <param name="File" value="output/xyz/:x.log" /> - <param name="Append" value="false" /> + <!-- We need a most likely invalid file name on most file systems to trigger FALLBACK. --> + <param name="File" value="output/xyz/." /> + <param name="Append" value="false" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%-5p %c{2} - %m%n"/>