Skip to content

Commit cda31ed

Browse files
authored
Disable failing test on Amazon Linux 2 (#9250)
* Disable the 'externalComplex' test on Amazon Linux 2 as this is blocking the nightly toolchain.
1 parent b9ffe26 commit cda31ed

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Sources/_InternalTestSupport/SwiftTesting+TraitsBug.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,11 @@ extension Trait where Self == Testing.Bug {
7575
relationship: .defect,
7676
)
7777
}
78+
79+
public static var IssueLdFailsUnexpectedly : Self {
80+
.issue(
81+
"https://github.com/swiftlang/swift-package-manager/issues/9249",
82+
relationship: .defect,
83+
)
84+
}
7885
}

Tests/FunctionalTests/DependencyResolutionTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ struct DependencyResolutionTests {
162162

163163
@Test(
164164
.IssueWindowsLongPath,
165+
.IssueLdFailsUnexpectedly,
165166
.tags(
166167
Tag.Feature.Command.Build,
167168
),
@@ -188,7 +189,8 @@ struct DependencyResolutionTests {
188189
#expect(output == "♣︎K\n♣︎Q\n♣︎J\n♣︎10\n♣︎9\n♣︎8\n♣︎7\n♣︎6\n♣︎5\n♣︎4\n")
189190
}
190191
} when: {
191-
ProcessInfo.hostOperatingSystem == .windows // due to long path isues
192+
ProcessInfo.hostOperatingSystem == .windows // due to long path issues
193+
|| (ProcessInfo.isHostAmazonLinux2() && buildSystem == .swiftbuild) // Linker ld throws an unexpected error.
192194
}
193195
}
194196

0 commit comments

Comments
 (0)