testTime.rb doesn't work correctly on some configuration
--------------------------------------------------------

                 Key: JRUBY-1371
                 URL: http://jira.codehaus.org/browse/JRUBY-1371
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.0.0
         Environment: OpenSuse 10.3 Beta3, Linux zelva 2.6.22.5-16-default #1 
SMP 2007/09/11 14:25:31 UTC x86_64 x86_64 x86_64 GNU/Linux
            Reporter: Michal Vyskocil
            Assignee: Thomas E Enebo
         Attachments: time-info.tar.gz

I'm try to rebuild jruby's src.rpm from jpackage.org (JPP-1.7) and build fails 
on line 18 in test/testTime.rb:

test_equal(Time.now.dst? ? 1 : -1, t3 <=> t4)

This line is depend on configuration of a build system and not work properly, 
if the timezone (/etc/localtime, and /etc/sysconfig/clock) is default with 
implicit values. In that case the compare returns false. In system configured 
to any other zone (eg. CET), the test returns true. This behavior is the same 
as (c)ruby interpreter, and this is not a bug in jruby, but in jruby's 
unittest. Unfortunately I cannot configure the build system using specfile and 
the package have to be build in this kind of environment (but I attach the 
/etc/localtime and /etc/sysconfig/zoneinfo files). I can only create a patch to 
this test and comment these line, but it isn't the best approach (it's the best 
way with my poor knowledge about ruby :-)).



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to