You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Paul Smith <ps...@aconex.com> on 2007/08/23 08:59:35 UTC
latest log4j trunk mvn test failures
Right now, with svn updated in log4j/trunk, a 'mvn clean install' fails:
...
> [junit] Testcase: testProblemCharacters took 0.016 sec
> [junit] Testcase: testNDCWithCDATA took 0.008 sec
> [junit] FAILED
> [junit] expected:<...> but was:<com.example.bar<>&"' ...>
> [junit] junit.framework.ComparisonFailure: expected:<...> but
> was:<com.example.bar<>&"' ...>
> [junit] at
> org.apache.log4j.xml.XMLLayoutTest.testNDCWithCDATA
> (XMLLayoutTest.java:456)
>
> [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Error executing ant tasks
>
> Embedded error: The following error occurred while executing this
> line:
> /workspace/log4j/tests/build.xml:186: Test
> org.apache.log4j.CoreTestSuite failed
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
Re: latest log4j trunk mvn test failures
Posted by Paul Smith <ps...@aconex.com>.
>
>
> Hopefully fixed now. The test was picking up NDC content set on a
> previous test. Added setUp and tearDown methods that clear the NDC
> and MDC before and after the tests. Guess I only ran the test in
> isolation.
All looks good now, thanks. I've been burnt by tests like these
myself, no fun.
cheers,
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
Re: latest log4j trunk mvn test failures
Posted by Curt Arnold <ca...@apache.org>.
On Aug 23, 2007, at 1:59 AM, Paul Smith wrote:
> Right now, with svn updated in log4j/trunk, a 'mvn clean install'
> fails:
>
> ...
>> [junit] Testcase: testProblemCharacters took 0.016 sec
>> [junit] Testcase: testNDCWithCDATA took 0.008 sec
>> [junit] FAILED
>> [junit] expected:<...> but was:<com.example.bar<>&"' ...>
>> [junit] junit.framework.ComparisonFailure: expected:<...> but
>> was:<com.example.bar<>&"' ...>
>> [junit] at
>> org.apache.log4j.xml.XMLLayoutTest.testNDCWithCDATA
>> (XMLLayoutTest.java:456)
>>
>> [INFO]
>> ---------------------------------------------------------------------
>> ---
>> [ERROR] BUILD ERROR
>> [INFO]
>> ---------------------------------------------------------------------
>> ---
>> [INFO] Error executing ant tasks
>>
>> Embedded error: The following error occurred while executing this
>> line:
>> /workspace/log4j/tests/build.xml:186: Test
>> org.apache.log4j.CoreTestSuite failed
>
Hopefully fixed now. The test was picking up NDC content set on a
previous test. Added setUp and tearDown methods that clear the NDC
and MDC before and after the tests. Guess I only ran the test in
isolation.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org