JRuby 1.40 ant test failure on Ubuntu Karmic 9.1

i’m seeing the same ant test failure below with 1.40 and the current dev
snapshot. the list archives don’t show up when I click so I haven’t
been
able to research the issue here before posting. TIA.

[junit] Testsuite: org.jruby.test.JRubyTestSuite
[junit] Failure:
[junit] test_primitive_conversion(TestPrimitiveToJava)
[./test/test_primitive_to_java.rb:13]:
[junit] Ruby time Sun Jan 31 11:36:02 UTC 2010 not converted to java
date correctly: Sun Jan 31 06:36:02 UTC 2010.
[junit] is not true.
[junit] )
[junit] Tests run: 66, Failures: 1, Errors: 0, Time elapsed: 52.92
sec
[junit]
[junit] Testcase:
test_primitive_to_java(org.jruby.test.TestUnitTestSuite$ScriptTest):
FAILED
[junit] Faults encountered running test/test_primitive_to_java,
complete
output follows:
[junit] Failure:
[junit] test_primitive_conversion(TestPrimitiveToJava)
[./test/test_primitive_to_java.rb:13]:
[junit] Ruby time Sun Jan 31 11:36:02 UTC 2010 not converted to java
date correctly: Sun Jan 31 06:36:02 UTC 2010.
[junit] is not true.
[junit]
[junit] junit.framework.AssertionFailedError: Faults encountered
running
test/test_primitive_to_java, complete output follows:
[junit] Failure:
[junit] test_primitive_conversion(TestPrimitiveToJava)
[./test/test_primitive_to_java.rb:13]:
[junit] Ruby time Sun Jan 31 11:36:02 UTC 2010 not converted to java
date correctly: Sun Jan 31 06:36:02 UTC 2010.
[junit] is not true.
[junit]
[junit] at
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:210)
[junit]
[junit]

BUILD FAILED
/home/test/code/jruby/build.xml:793: The following error occurred while
executing this line:
/home/test/code/jruby/build.xml:893: The following error occurred while
executing this line:
/home/test/code/jruby/build.xml:834: Tests failed

Total time: 2 minutes 12 seconds

This looks like a timezone problem of some kind. Can you describe your
environment a bit more? Where are you located? What is your system’s
ENV (especially TZ)?

On Sun, Jan 31, 2010 at 5:44 AM, Ming [email protected] wrote:

   [junit] )
date correctly: Sun Jan 31 06:36:02 UTC 2010.
   [junit]
Total time: 2 minutes 12 seconds


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi,

I remember having some Time-related problems with Ubuntu as well.

Take a look at the following:
http://jira.codehaus.org/browse/JRUBY-2541

and especially at this Ubuntu bug (with some workarounds listed):
https://bugs.launchpad.net/ubuntu/+source/tzdata/+bug/246732

Thanks,
–Vladimir

On Sun, Jan 31, 2010 at 12:44 PM, Ming [email protected] wrote:

[junit] )

date correctly: Sun Jan 31 06:36:02 UTC 2010.
[junit]
Total time: 2 minutes 12 seconds


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

thanks for the replies. my timezone is New_York and fits conditions
described in the Ubuntu bug reports.

“ant build” reports no failures after symlinking /etc/localhost to the
proper timezone:

https://bugs.launchpad.net/ubuntu/+source/tzdata/+bug/246732/comments/4

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs