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

Tests for bson_ext 1.3.1 gem fail on i386

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
    • Environment:
      Fedora 15, i386

      Description

      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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: