Skip to content

Commit 3d58514

Browse files
mask out tests that are failing on Linux (#996)
1 parent 2e3e73a commit 3d58514

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Tests/SwiftDocCTests/LinkTargets/LinkDestinationSummaryTests.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,9 @@ class ExternalLinkableTests: XCTestCase {
436436
XCTAssertEqual(decoded, summary)
437437
}
438438
}
439-
439+
440+
// TODO: Remove this #if once https://github.com/apple/swift-corelibs-foundation/issues/5028 is resolved
441+
#if os(macOS)
440442
func testVariantSummaries() throws {
441443
let (bundle, context) = try testBundleAndContext(named: "MixedLanguageFramework")
442444
let converter = DocumentationNodeConverter(bundle: bundle, context: context)
@@ -591,7 +593,8 @@ class ExternalLinkableTests: XCTestCase {
591593
XCTAssertEqual(decoded, summary)
592594
}
593595
}
594-
596+
#endif
597+
595598
func testDecodingLegacyData() throws {
596599
let legacyData = """
597600
{

Tests/SwiftDocCUtilitiesTests/ConvertActionTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import Markdown
1717
@testable import SwiftDocCTestUtilities
1818

1919
class ConvertActionTests: XCTestCase {
20-
#if !os(iOS)
20+
// TODO: Change this back to `#if !os(iOS)` once https://github.com/apple/swift-corelibs-foundation/issues/5028 is resolved
21+
#if os(macOS)
2122
let imageFile = Bundle.module.url(
2223
forResource: "TestBundle", withExtension: "docc", subdirectory: "Test Bundles")!
2324
.appendingPathComponent("figure1.png")

0 commit comments

Comments
 (0)