Skip to content

Test failures in the MRI 1.9 suite (Time class) when TZ is set #948

@Sinjo

Description

@Sinjo

On a fresh checkout and build of JRuby, running rake test:mri19 results in a number of test failures related to timezones. When I have TZ=Europe/London I get the following output at the end of the test run:

  1) Skipped:
test_civil__gregorian(TestDateBase) [/home/sinjo/projects/jruby/lib/ruby/gems/shared/gems/minitest-4.7.5/lib/minitest/unit.rb:1258]:
Skipped, no message given

  2) Skipped:
test_civil__julian(TestDateBase) [/home/sinjo/projects/jruby/lib/ruby/gems/shared/gems/minitest-4.7.5/lib/minitest/unit.rb:1258]:
Skipped, no message given

  3) Skipped:
test_commercial__gregorian(TestDateBase) [/home/sinjo/projects/jruby/lib/ruby/gems/shared/gems/minitest-4.7.5/lib/minitest/unit.rb:1258]:
Skipped, no message given

  4) Skipped:
test_nth_kday(TestDateBase) [/home/sinjo/projects/jruby/lib/ruby/gems/shared/gems/minitest-4.7.5/lib/minitest/unit.rb:1258]:
Skipped, no message given

  5) Skipped:
test_ordinal__gregorian(TestDateBase) [/home/sinjo/projects/jruby/lib/ruby/gems/shared/gems/minitest-4.7.5/lib/minitest/unit.rb:1258]:
Skipped, no message given

  6) Skipped:
test_ordinal__julian(TestDateBase) [/home/sinjo/projects/jruby/lib/ruby/gems/shared/gems/minitest-4.7.5/lib/minitest/unit.rb:1258]:
Skipped, no message given

  7) Skipped:
test_weeknum(TestDateBase) [/home/sinjo/projects/jruby/lib/ruby/gems/shared/gems/minitest-4.7.5/lib/minitest/unit.rb:1258]:
Skipped, no message given

  8) Skipped:
test_weeknum__2(TestDateBase) [/home/sinjo/projects/jruby/lib/ruby/gems/shared/gems/minitest-4.7.5/lib/minitest/unit.rb:1258]:
Skipped, no message given

  9) Skipped:
test_base(TestSH) [/home/sinjo/projects/jruby/lib/ruby/gems/shared/gems/minitest-4.7.5/lib/minitest/unit.rb:1258]:
Skipped, no message given

 10) Failure:
test_gen_Europe_London_92(TestTimeTZ) [/home/sinjo/projects/jruby/test/externals/ruby1.9/ruby/test_time_tz.rb:248]:
TZ=Europe/London Time.local(59, 59, 1, 16, 3, 1947, nil, nil, true, nil).
<"1947-03-16 01:59:59 +0000"> expected but was
<"1947-03-16 00:59:59 +0000">.

 11) Failure:
test_gen_Europe_London_93(TestTimeTZ) [/home/sinjo/projects/jruby/test/externals/ruby1.9/ruby/test_time_tz.rb:247]:
TZ=Europe/London Time.local(0, 0, 3, 16, 3, 1947, nil, nil, false, nil).
<"1947-03-16 03:00:00 +0100"> expected but was
<"1947-03-16 04:00:00 +0100">.

 12) Failure:
test_gen_Europe_London_94(TestTimeTZ) [/home/sinjo/projects/jruby/test/externals/ruby1.9/ruby/test_time_tz.rb:247]:
TZ=Europe/London Time.local(59, 59, 1, 13, 4, 1947, nil, nil, false, nil).
<"1947-04-13 01:59:59 +0100"> expected but was
<"1947-04-13 03:59:59 +0200">.

 13) Failure:
test_gen_Europe_London_95(TestTimeTZ) [/home/sinjo/projects/jruby/test/externals/ruby1.9/ruby/test_time_tz.rb:247]:
TZ=Europe/London Time.local(0, 0, 3, 13, 4, 1947, nil, nil, false, nil).
<"1947-04-13 03:00:00 +0200"> expected but was
<"1947-04-13 05:00:00 +0200">.

 14) Failure:
test_gen_Europe_London_96(TestTimeTZ) [/home/sinjo/projects/jruby/test/externals/ruby1.9/ruby/test_time_tz.rb:257]:
TZ=Europe/London Time.local(59, 59, 2, 10, 8, 1947, nil, nil, true, nil).
<"1947-08-10 02:59:59 +0200"> expected but was
<"1947-08-10 02:59:59 +0100">.

 15) Failure:
test_gen_Europe_London_97(TestTimeTZ) [/home/sinjo/projects/jruby/test/externals/ruby1.9/ruby/test_time_tz.rb:264]:
TZ=Europe/London Time.local(0, 0, 2, 10, 8, 1947, nil, nil, false, nil).
<"1947-08-10 02:00:00 +0100"> expected but was
<"1947-08-10 03:00:00 +0100">.

 16) Failure:
test_gen_Europe_London_98(TestTimeTZ) [/home/sinjo/projects/jruby/test/externals/ruby1.9/ruby/test_time_tz.rb:258]:
TZ=Europe/London Time.new(1947, 11, 2, 2, 59, 59, :dst).
<"1947-11-02 02:59:59 +0100"> expected but was
<"1947-11-02 02:59:59 +0000">.

4923 tests, 753218 assertions, 7 failures, 0 errors, 9 skips

When I export TZ=UTC I'm left with just the 9 skipped tests, and no failures.

I'm running Ubuntu 12.04, and the version string of my JRuby build looks like:

jruby 1.7.5.dev (1.9.3p392) 2013-08-07 8b9d926 on OpenJDK 64-Bit Server VM 1.7.0_25-b30 [linux-amd64]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions