You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Sander Temme <sc...@apache.org> on 2007/04/07 18:26:44 UTC

Re: httpd perl-framework test failed

On Apr 7, 2007, at 5:40 AM, Sriskanthaverl wrote:

> I found the following test case failed when running apache-2.2.4 in
> SunOS 5.10 x86 platform. Could anybody explain this?
>
> t/modules/include....ok 45/86# Failed test 53 in t/modules/ 
> include.t at line 324
>
> Failed Test         Stat Wstat Total Fail  List of Failed
>> --------------------------------------------------------------------- 
>> ----------
>> t/modules/include.t               86    1  53
>>
>> # testing : GET /modules/include/file.shtml
>> # expected: Thursday, 29-Mar-2007 14:37:26 Thursday, 29-Mar-2007
>> 14:37:26 Thursday, March 29, 2007 Thursday, March 29, 2007  
>> 14:37:26 14:37:26
>> # received: Thursday, 29-Mar-2007 14:37:26 PDT Thursday, 29-Mar-2007
>> 14:37:26 PDT Thursday, March 29, 2007 Thursday, March 29, 2007  
>> 14:37:26
>> 14:37:26
>> not ok 53

I'm not intimately familiar with that test, but there seems to be  
some difference in how the test computes the timezone vs. how the  
server does it. Are you sure date, time and timezone are all  
correctly set up on that box?

S.

-- 
sctemme@apache.org            http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF



Re: httpd perl-framework test failed

Posted by Joe Orton <jo...@redhat.com>.
On Tue, Apr 10, 2007 at 04:52:14PM +0100, Sriskanthaverl wrote:
> Hi,
> date, time and timezones should be correct in that box, and it can be
> seen that the expected, and received time are actually the same, except
> the server mention 'PDT' also. The test-framework gets the time from the
> same box, and format it such a way that it match with the output from
> the server (test scripter assumed a format and coded accordingly). If
> the time-format of the server is what expected, I can conclude, the
> test-framework have to be changed to expect the right format.

Are you running the test suite under the same locale settings as the 
server?  The issue is that the strftime() call in the test suite is 
ommitting the time zone; it's not obvious why.

If you edit include.t and comment out the POSIX::setlocale() calls, does 
that make any difference?

joe

Re: httpd perl-framework test failed

Posted by Sriskanthaverl <sk...@gmail.com>.
Hi,
date, time and timezones should be correct in that box, and it can be
seen that the expected, and received time are actually the same, except
the server mention 'PDT' also. The test-framework gets the time from the
same box, and format it such a way that it match with the output from
the server (test scripter assumed a format and coded accordingly). If
the time-format of the server is what expected, I can conclude, the
test-framework have to be changed to expect the right format.

Thanks
Sris

Sander Temme wrote:
>
> On Apr 7, 2007, at 5:40 AM, Sriskanthaverl wrote:
>
>> I found the following test case failed when running apache-2.2.4 in
>> SunOS 5.10 x86 platform. Could anybody explain this?
>>
>> t/modules/include....ok 45/86# Failed test 53 in t/modules/include.t
>> at line 324
>>
>> Failed Test         Stat Wstat Total Fail  List of Failed
>>> -------------------------------------------------------------------------------
>>>
>>> t/modules/include.t               86    1  53
>>>
>>> # testing : GET /modules/include/file.shtml
>>> # expected: Thursday, 29-Mar-2007 14:37:26 Thursday, 29-Mar-2007
>>> 14:37:26 Thursday, March 29, 2007 Thursday, March 29, 2007 14:37:26
>>> 14:37:26
>>> # received: Thursday, 29-Mar-2007 14:37:26 PDT Thursday, 29-Mar-2007
>>> 14:37:26 PDT Thursday, March 29, 2007 Thursday, March 29, 2007 14:37:26
>>> 14:37:26
>>> not ok 53
>
> I'm not intimately familiar with that test, but there seems to be some
> difference in how the test computes the timezone vs. how the server
> does it. Are you sure date, time and timezone are all correctly set up
> on that box?
>
> S.
>
> --sctemme@apache.org            http://www.temme.net/sander/
> PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF
>
>