Skip to content

Commit 95b3df5

Browse files
committed
Work around macro expansion bug in 2024-4-1 toolchain.
The latest main toolchain has introduced a regression in macro expansion (tracked by rdar://120559184.) This PR works around the regression, which is causing a build failure in one test.
1 parent 39dc61f commit 95b3df5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/TestingTests/Runner.Plan.SnapshotTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ struct Runner_Plan_SnapshotTests {
1919
#if canImport(Foundation)
2020
@Test("Codable")
2121
func codable() async throws {
22+
#if SWT_FIXED_120559184
2223
let suite = try #require(await test(for: Runner_Plan_SnapshotFixtures.self))
2324

2425
var configuration = Configuration()
@@ -48,6 +49,7 @@ struct Runner_Plan_SnapshotTests {
4849
Issue.record("Decoded step does not match the original snapshotted step: decodedStep: \(decodedStep), snapshotStep: \(snapshotStep)")
4950
}
5051
}
52+
#endif
5153
}
5254
#endif
5355
}

0 commit comments

Comments
 (0)