Skip to content

Commit 5594cb3

Browse files
committed
Tests: Disable test
Test `roundTrippingUInt128` appears to be causing a stack dump in an OSS build on linux. Disable this test for now until we can properly get this resolved. rdar://154155359
1 parent 3ee8bc0 commit 5594cb3

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

Tests/FoundationEssentialsTests/JSONEncoderTests.swift

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,18 +1433,29 @@ private struct JSONEncoderTests {
14331433
}
14341434
}
14351435
}
1436-
1437-
@Test(arguments: [
1438-
UInt128.zero,
1439-
1,
1440-
0x0000_0000_0000_0000_7fff_ffff_ffff_ffff,
1441-
0x0000_0000_0000_0000_8000_0000_0000_0000,
1442-
0x0000_0000_0000_0000_ffff_ffff_ffff_ffff,
1443-
0x0000_0000_0000_0001_0000_0000_0000_0000,
1444-
0x7fff_ffff_ffff_ffff_ffff_ffff_ffff_ffff,
1445-
0x8000_0000_0000_0000_0000_0000_0000_0000,
1446-
.max
1447-
])
1436+
1437+
private var isLinux: Bool {
1438+
#if os(Linux)
1439+
true
1440+
#else
1441+
false
1442+
#endif
1443+
}
1444+
1445+
@Test(
1446+
.disabled(if: isLinux, "This test is not applicable on this platform"),
1447+
arguments: [
1448+
UInt128.zero,
1449+
1,
1450+
0x0000_0000_0000_0000_7fff_ffff_ffff_ffff,
1451+
0x0000_0000_0000_0000_8000_0000_0000_0000,
1452+
0x0000_0000_0000_0000_ffff_ffff_ffff_ffff,
1453+
0x0000_0000_0000_0001_0000_0000_0000_0000,
1454+
0x7fff_ffff_ffff_ffff_ffff_ffff_ffff_ffff,
1455+
0x8000_0000_0000_0000_0000_0000_0000_0000,
1456+
.max
1457+
]
1458+
)
14481459
func roundTrippingUInt128(u128: UInt128) {
14491460
_testRoundTrip(of: u128)
14501461
}

0 commit comments

Comments
 (0)