Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-327

Tests for bson_ext 1.3.1 gem fail on i386

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: 1.3.1
    • Component/s: None
    • Environment:
      Fedora 15, i386

      Tests for bson_ext 1.3.1 gem fail on i386:

      1) Error:
      test_from_time_unique(ObjectIdTest):
      RangeError: bignum too big to convert into `long'
      /usr/lib/ruby/gems/1.8/gems/bson-1.3.1/lib/../lib/bson/types/object_id.rb:170:in `at'
      /usr/lib/ruby/gems/1.8/gems/bson-1.3.1/lib/../lib/bson/types/object_id.rb:170:in `generation_time'
      ./test/bson/object_id_test.rb:137:in `test_from_time_unique'

      I'm thinking there is an issue with size of long on i386, since on x86_64, everything goes fine.
      With regards,
      Bohuslav Kabrda

            Assignee:
            kbanker Kyle Banker
            Reporter:
            bkabrda Bohuslav Kabrda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: