Skip to content

Commit 244432b

Browse files
iCharlesHucthielen
authored andcommitted
Add requirements to only run DecimalTests.testCrashingDivision on 64 bit devices (swiftlang#856)
resolves: rdar://133957938
1 parent a5055fb commit 244432b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/FoundationEssentialsTests/DecimalTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,8 @@ final class DecimalTests : XCTestCase {
613613
XCTAssertTrue(Decimal._compare(lhs: expected, rhs: result) == .orderedSame)
614614
}
615615

616+
#if _pointerBitWidth(_64)
617+
// This test require Int to be Int64
616618
func testCrashingDivision() throws {
617619
// This test makes sure the following division
618620
// does not crash
@@ -638,6 +640,7 @@ final class DecimalTests : XCTestCase {
638640
)
639641
XCTAssertEqual(result, expected)
640642
}
643+
#endif
641644

642645
func testPower() throws {
643646
var a = Decimal(1234)

0 commit comments

Comments
 (0)