Skip to content

Commit 0367bcd

Browse files
committed
don’t compile swift-snapshot-testing on macOS, as swift symbolgraph-extract crashes there
1 parent 8cd4398 commit 0367bcd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SymbolGraphBuilderTests/Main.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ enum Main:TestMain, TestBattery
336336

337337
// The swift-snapshot-testing package at 1.17.0 has a dependency on SwiftSyntax with
338338
// prerelease bounds on both sides, so we should be able to handle that.
339+
340+
// This test is disabled on macOS because `swift symbolgraph-extract` crashes there.
341+
#if os(Linux)
339342
if let tests:TestGroup = tests / "swift-snapshot-testing",
340343
let docs:SymbolGraphObject<Void> = (tests.do
341344
{
@@ -356,6 +359,7 @@ enum Main:TestMain, TestBattery
356359

357360
docs.roundtrip(for: tests, in: workspace.artifacts)
358361
}
362+
#endif
359363

360364
// IndexstoreDB links the LLVM Blocks runtime, so this tests that we handle that.
361365
// Since it involves specifying the location of the Swift runtime, we can only expect

0 commit comments

Comments
 (0)