rubinius/rubinius — Issue #1405: Failing time/zone specs on Linux
Author: hosiawak
Created: 2011-11-13 21:04:03+00:00
State: open

./configure
Checking gcc: found
Checking bison: found
Configuring LLVM...
Checking for existing LLVM library tree: found!

Checking sizeof(long): 4 bytes
Checking platform endianness: little endian
Checking tr1/hash definition: found
Checking for x86_32: yes
Checking for function 'backtrace': found!
Checking for function 'readline': found!
Checking for function 'yaml_parser_initialize': found!
Checking whether struct tm has member tm_gmtoff: found!
Checking whether struct tm has member tm_zone: found!
Checking for global 'timezone': found!
Checking for global 'tzname': found!
Checking for global 'daylight': found!
Checking curses library: curses

./bin/mspec ci spec/ruby/core/time
rubinius 2.0.0dev (1.8.7 73951ff3 yyyy-mm-dd JI) [i686-pc-linux-gnu]
.........................F....F...............F...............F

1)
Time.local respects rare old timezones FAILED
Expected "Sat Jan 01 00:00:00 +0100 1910"
to equal "Sat Jan 01 00:00:00 +0019 1910"

/expectations.rb:15
{ } in Object#__script__ at spec/ruby/core/time/shared/local.rb:21
Object#with_timezone at spec/ruby/core/time/fixtures/methods.rb:17
{ } in Object#__script__ at spec/ruby/core/time/shared/local.rb:18
Kernel(Object)#instance_eval at kernel/common/eval18.rb:43
{ } in Enumerable(Array)#all? at kernel/common/enumerable.rb:241
Array#each at kernel/bootstrap/array.rb:66
Enumerable(Array)#all? at kernel/common/enumerable.rb:241
Array#each at kernel/bootstrap/array.rb:66
Object#__script__ at spec/ruby/core/time/local_spec.rb:6
Kernel.load at kernel/common/kernel.rb:621
Kernel(Object)#instance_eval at kernel/common/eval18.rb:43
Array#each at kernel/bootstrap/array.rb:66
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:107
Rubinius::Loader#script at kernel/loader.rb:626
Rubinius::Loader#main at kernel/loader.rb:780

2)
Time.mktime respects rare old timezones FAILED
Expected "Sat Jan 01 00:00:00 +0100 1910"
to equal "Sat Jan 01 00:00:00 +0019 1910"

/expectations.rb:15
{ } in Object#__script__ at spec/ruby/core/time/shared/local.rb:21
Object#with_timezone at spec/ruby/core/time/fixtures/methods.rb:17
{ } in Object#__script__ at spec/ruby/core/time/shared/local.rb:18
Kernel(Object)#instance_eval at kernel/common/eval18.rb:43
{ } in Enumerable(Array)#all? at kernel/common/enumerable.rb:241
Array#each at kernel/bootstrap/array.rb:66
Enumerable(Array)#all? at kernel/common/enumerable.rb:241
Array#each at kernel/bootstrap/array.rb:66
Object#__script__ at spec/ruby/core/time/mktime_spec.rb:6
Kernel.load at kernel/common/kernel.rb:621
Kernel(Object)#instance_eval at kernel/common/eval18.rb:43
Array#each at kernel/bootstrap/array.rb:66
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:107
Rubinius::Loader#script at kernel/loader.rb:626
Rubinius::Loader#main at kernel/loader.rb:780

3)
Time#to_a returns a 10 element array representing the deconstructed time FAILED
Expected [0, 0, 18, 31, 12, 1969, 3, 365, false, nil]
to equal [0, 0, 18, 31, 12, 1969, 3, 365, false, "CST"]

/expectations.rb:15
{ } in Object#__script__ at spec/ruby/core/time/to_a_spec.rb:8
Object#with_timezone at spec/ruby/core/time/fixtures/methods.rb:17
{ } in Object#__script__ at spec/ruby/core/time/to_a_spec.rb:7
Kernel(Object)#instance_eval at kernel/common/eval18.rb:43
{ } in Enumerable(Array)#all? at kernel/common/enumerable.rb:241
Array#each at kernel/bootstrap/array.rb:66
Enumerable(Array)#all? at kernel/common/enumerable.rb:241
Array#each at kernel/bootstrap/array.rb:66
Object#__script__ at spec/ruby/core/time/to_a_spec.rb:4
Kernel.load at kernel/common/kernel.rb:621
Kernel(Object)#instance_eval at kernel/common/eval18.rb:43
Array#each at kernel/bootstrap/array.rb:66
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:107
Rubinius::Loader#script at kernel/loader.rb:626
Rubinius::Loader#main at kernel/loader.rb:780

4)
Time#zone returns the time zone used for time FAILED
Expected "\2045a\332 ]\322\277z!\355"
to equal "AST"

/expectations.rb:15
{ } in Object#__script__ at spec/ruby/core/time/zone_spec.rb:8
Object#with_timezone at spec/ruby/core/time/fixtures/methods.rb:17
{ } in Object#__script__ at spec/ruby/core/time/zone_spec.rb:7
Kernel(Object)#instance_eval at kernel/common/eval18.rb:43
{ } in Enumerable(Array)#all? at kernel/common/enumerable.rb:241
Array#each at kernel/bootstrap/array.rb:66
Enumerable(Array)#all? at kernel/common/enumerable.rb:241
Array#each at kernel/bootstrap/array.rb:66
Object#__script__ at spec/ruby/core/time/zone_spec.rb:4
Kernel.load at kernel/common/kernel.rb:621
Kernel(Object)#instance_eval at kernel/common/eval18.rb:43
Array#each at kernel/bootstrap/array.rb:66
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:107
Rubinius::Loader#script at kernel/loader.rb:626
Rubinius::Loader#main at kernel/loader.rb:780

Finished in 0.813009 seconds

63 files, 171 examples, 364 expectations, 4 failures, 0 errors