Time support on AIX is broken
-----------------------------

                 Key: JRUBY-3618
                 URL: http://jira.codehaus.org/browse/JRUBY-3618
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.2
         Environment: AIX 5.3 with IBM JVM 1.5

            Reporter: Jean-Dominique Morani
            Assignee: Thomas E Enebo
            Priority: Blocker
             Fix For: JRuby 1.3


Time.now is returning the UTC time instead of the local time. I also notice in 
the unit test that the following error is being returned when Time is tested : 

NoMethodError: undefined method `skipping' for #<TestTime:0x13a813a8>

When running JRuby unit test, the following output is returned :

run-junit-compiled:
     [echo] compile=JIT, jit.threshold=0, jit.max=-1, objectspace=true 
threadpool=false reflection=false version=ruby1_8
    [junit] Testsuite: org.jruby.test.ScriptTestSuite
    [junit] Tests run: 79, Failures: 0, Errors: 0, Time elapsed: 40.768 sec
    [junit]
    [junit] Testsuite: org.jruby.test.BFTSTestSuite
    [junit] Failure:
    [junit] test_00sanity(TestTime) [test/externals/bfts/test_time.rb:136]:
    [junit] If this test fails, don't bother debugging anything else.
    [junit] <Sat Feb 03 12:05:06 UTC 2001> expected but was
    [junit] <Sat Feb 03 04:05:06 UTC 2001>.
    [junit] Failure:
    [junit] test_class_gm(TestTime) [test/externals/bfts/test_time.rb:197]:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Failure:
    [junit] test_class_local(TestTime) [test/externals/bfts/test_time.rb:216]:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Failure:
    [junit] test_class_mktime(TestTime) [test/externals/bfts/test_time.rb:238]:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Failure:
    [junit] test_class_utc(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:197:in `test_class_gm'
    [junit]      test/externals/bfts/test_time.rb:268:in `test_class_utc']:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Error:
    [junit] test_dst_eh(TestTime):
    [junit] NoMethodError: undefined method `skipping' for #<TestTime:0xae20ae2>
    [junit]     test/externals/bfts/test_time.rb:427:in `test_isdst'
    [junit]     test/externals/bfts/test_time.rb:297:in `test_dst_eh'
    [junit] Failure:
    [junit] test_getgm(TestTime) [test/externals/bfts/test_time.rb:320]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_getlocal(TestTime) [test/externals/bfts/test_time.rb:338]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_getutc(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:320:in `test_getgm'
    [junit]      test/externals/bfts/test_time.rb:347:in `test_getutc']:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_gmt_eh(TestTime) [test/externals/bfts/test_time.rb:351]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_gmtime(TestTime) [test/externals/bfts/test_time.rb:365]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_inspect(TestTime) [test/externals/bfts/test_time.rb:393]:
    [junit] <"Sat Feb 03 04:05:06 -0800 2001"> expected but was
    [junit] <"Sat Feb 03 04:05:06 UTC 2001">.
    [junit] Error:
    [junit] test_isdst(TestTime):
    [junit] NoMethodError: undefined method `skipping' for 
#<TestTime:0x13a813a8>
    [junit]     test/externals/bfts/test_time.rb:427:in `test_isdst'
    [junit] Failure:
    [junit] test_localtime(TestTime) [test/externals/bfts/test_time.rb:437]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_to_s(TestTime) [test/externals/bfts/test_time.rb:612]:
    [junit] <"Sat Feb 03 04:05:06 -0800 2001"> expected but was
    [junit] <"Sat Feb 03 04:05:06 UTC 2001">.
    [junit] Failure:
    [junit] test_utc(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:365:in `test_gmtime'
    [junit]      test/externals/bfts/test_time.rb:638:in `test_utc']:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_utc_eh(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:351:in `test_gmt_eh'
    [junit]      test/externals/bfts/test_time.rb:642:in `test_utc_eh']:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_zone(TestTime) [test/externals/bfts/test_time.rb:698]:
    [junit] <"UTC"> expected to be != to
    [junit] <"UTC">.
    [junit] )
    [junit] Tests run: 10, Failures: 1, Errors: 0, Time elapsed: 8.697 sec
    [junit]
    [junit] Testcase: 
externals/bfts/test_time(org.jruby.test.TestUnitTestSuite$ScriptTest):    FAILED
    [junit] Faults encountered running test/externals/bfts/test_time, complete 
output follows:
    [junit] Failure:
    [junit] test_00sanity(TestTime) [test/externals/bfts/test_time.rb:136]:
    [junit] If this test fails, don't bother debugging anything else.
    [junit] <Sat Feb 03 12:05:06 UTC 2001> expected but was
    [junit] <Sat Feb 03 04:05:06 UTC 2001>.
    [junit] Failure:
    [junit] test_class_gm(TestTime) [test/externals/bfts/test_time.rb:197]:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Failure:
    [junit] test_class_local(TestTime) [test/externals/bfts/test_time.rb:216]:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Failure:
    [junit] test_class_mktime(TestTime) [test/externals/bfts/test_time.rb:238]:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Failure:
    [junit] test_class_utc(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:197:in `test_class_gm'
    [junit]      test/externals/bfts/test_time.rb:268:in `test_class_utc']:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Error:
    [junit] test_dst_eh(TestTime):
    [junit] NoMethodError: undefined method `skipping' for #<TestTime:0xae20ae2>
    [junit]     test/externals/bfts/test_time.rb:427:in `test_isdst'
    [junit]     test/externals/bfts/test_time.rb:297:in `test_dst_eh'
    [junit] Failure:
    [junit] test_getgm(TestTime) [test/externals/bfts/test_time.rb:320]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_getlocal(TestTime) [test/externals/bfts/test_time.rb:338]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_getutc(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:320:in `test_getgm'
    [junit]      test/externals/bfts/test_time.rb:347:in `test_getutc']:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_gmt_eh(TestTime) [test/externals/bfts/test_time.rb:351]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_gmtime(TestTime) [test/externals/bfts/test_time.rb:365]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_inspect(TestTime) [test/externals/bfts/test_time.rb:393]:
    [junit] <"Sat Feb 03 04:05:06 -0800 2001"> expected but was
    [junit] <"Sat Feb 03 04:05:06 UTC 2001">.
    [junit] Error:
    [junit] test_isdst(TestTime):
    [junit] NoMethodError: undefined method `skipping' for 
#<TestTime:0x13a813a8>
    [junit]     test/externals/bfts/test_time.rb:427:in `test_isdst'
    [junit] Failure:
    [junit] test_localtime(TestTime) [test/externals/bfts/test_time.rb:437]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_to_s(TestTime) [test/externals/bfts/test_time.rb:612]:
    [junit] <"Sat Feb 03 04:05:06 -0800 2001"> expected but was
    [junit] <"Sat Feb 03 04:05:06 UTC 2001">.
    [junit] Failure:
    [junit] test_utc(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:365:in `test_gmtime'
    [junit]      test/externals/bfts/test_time.rb:638:in `test_utc']:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_utc_eh(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:351:in `test_gmt_eh'
    [junit]      test/externals/bfts/test_time.rb:642:in `test_utc_eh']:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_zone(TestTime) [test/externals/bfts/test_time.rb:698]:
    [junit] <"UTC"> expected to be != to
    [junit] <"UTC">.
    [junit]
    [junit] junit.framework.AssertionFailedError: Faults encountered running 
test/externals/bfts/test_time, complete output follows:
    [junit] Failure:
    [junit] test_00sanity(TestTime) [test/externals/bfts/test_time.rb:136]:
    [junit] If this test fails, don't bother debugging anything else.
    [junit] <Sat Feb 03 12:05:06 UTC 2001> expected but was
    [junit] <Sat Feb 03 04:05:06 UTC 2001>.
    [junit] Failure:
    [junit] test_class_gm(TestTime) [test/externals/bfts/test_time.rb:197]:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Failure:
    [junit] test_class_local(TestTime) [test/externals/bfts/test_time.rb:216]:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Failure:
    [junit] test_class_mktime(TestTime) [test/externals/bfts/test_time.rb:238]:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Failure:
    [junit] test_class_utc(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:197:in `test_class_gm'
    [junit]      test/externals/bfts/test_time.rb:268:in `test_class_utc']:
    [junit] <Sat Jan 01 00:00:00 UTC 2000> expected to be != to
    [junit] <Sat Jan 01 00:00:00 UTC 2000>.
    [junit] Error:
    [junit] test_dst_eh(TestTime):
    [junit] NoMethodError: undefined method `skipping' for #<TestTime:0xae20ae2>
    [junit]     test/externals/bfts/test_time.rb:427:in `test_isdst'
    [junit]     test/externals/bfts/test_time.rb:297:in `test_dst_eh'
    [junit] Failure:
    [junit] test_getgm(TestTime) [test/externals/bfts/test_time.rb:320]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_getlocal(TestTime) [test/externals/bfts/test_time.rb:338]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_getutc(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:320:in `test_getgm'
    [junit]      test/externals/bfts/test_time.rb:347:in `test_getutc']:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_gmt_eh(TestTime) [test/externals/bfts/test_time.rb:351]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_gmtime(TestTime) [test/externals/bfts/test_time.rb:365]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_inspect(TestTime) [test/externals/bfts/test_time.rb:393]:
    [junit] <"Sat Feb 03 04:05:06 -0800 2001"> expected but was
    [junit] <"Sat Feb 03 04:05:06 UTC 2001">.
    [junit] Error:
    [junit] test_isdst(TestTime):
    [junit] NoMethodError: undefined method `skipping' for 
#<TestTime:0x13a813a8>
    [junit]     test/externals/bfts/test_time.rb:427:in `test_isdst'
    [junit] Failure:
    [junit] test_localtime(TestTime) [test/externals/bfts/test_time.rb:437]:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_to_s(TestTime) [test/externals/bfts/test_time.rb:612]:
    [junit] <"Sat Feb 03 04:05:06 -0800 2001"> expected but was
    [junit] <"Sat Feb 03 04:05:06 UTC 2001">.
    [junit] Failure:
    [junit] test_utc(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:365:in `test_gmtime'
    [junit]      test/externals/bfts/test_time.rb:638:in `test_utc']:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_utc_eh(TestTime)
    [junit]     [test/externals/bfts/test_time.rb:351:in `test_gmt_eh'
    [junit]      test/externals/bfts/test_time.rb:642:in `test_utc_eh']:
    [junit] <false> is not true.
    [junit] Failure:
    [junit] test_zone(TestTime) [test/externals/bfts/test_time.rb:698]:
    [junit] <"UTC"> expected to be != to
    [junit] <"UTC">.
    [junit]
    [junit]     at 
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:210)
    [junit]
    [junit]

BUILD FAILED


-- 
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