You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Peter Beerents <pe...@charm.nl> on 2010/02/12 19:00:27 UTC
Inflexible date pattern in unit test code make tests fail from 2010
Hi,
I have found a litte bug in the testsuite_standalone code.
It concerns the following construction in the header file
test\cpp\util\filter.h
#define ABSOLUTE_DATE_AND_TIME_PAT \
"[0-9]\\{1,2\\} .* 200[0-9]
[0-9]\\{2\\}:[0-9]\\{2\\}:[0-9]\\{2\\},[0-9]\\{3\\}"
Tests minimumtestcase, patternlayouttest, timebasedrollingtest fail
because we are now are now in 2010.
Regards,
Peter
Amsterdam
Re: Inflexible date pattern in unit test code make tests fail from 2010
Posted by Curt Arnold <ca...@apache.org>.
Thanks for reminding me. Same problem occurred in log4j which was fixed due to the constant nagging of the nightly Gump build. Didn't bring the patch over to log4cxx.
On Feb 12, 2010, at 12:00 PM, Peter Beerents wrote:
> Hi,
>
> I have found a litte bug in the testsuite_standalone code.
> It concerns the following construction in the header file
> test\cpp\util\filter.h
>
> #define ABSOLUTE_DATE_AND_TIME_PAT \
> "[0-9]\\{1,2\\} .* 200[0-9]
> [0-9]\\{2\\}:[0-9]\\{2\\}:[0-9]\\{2\\},[0-9]\\{3\\}"
>
> Tests minimumtestcase, patternlayouttest, timebasedrollingtest fail
> because we are now are now in 2010.
>
> Regards,
>
> Peter
> Amsterdam
>