Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-197

Ensure all tests involving Ints and UInts that need 64 bits are only run on 64-bit platforms

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 0.1.0
    • None
    • None

    Description

      The bitwidth of the Int type is platform dependent. We should ensure that any test where we are using an Int value that cannot be stored in 32 bits is only run on 64-bit platforms, possibly refactoring some tests to use Int64 instead (which will work on any platform). 

      SWIFT-196 introduces a static property to XCTestCase that indicates whether the platform is 32-bit.

       

      The alternate code paths can be tested on 64-bit platforms by temporarily setting XCTestCase.is32Bit to true. 

      Attachments

        Activity

          People

            kaitlin.mahar@mongodb.com Kaitlin Mahar
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: