Skip to content

Commit a47795c

Browse files
Skip swift-testing tests for Swift 6.3
1 parent 39f663c commit a47795c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Plugins/PackageToJS/Tests/ExampleTests.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ extension Trait where Self == ConditionTrait {
246246
}
247247
}
248248

249+
// FIXME: This test fails on Swift 6.3 and later due to memory corruption
250+
// Enable it back when https://github.com/swiftlang/swift-driver/pull/1987 is included in the snapshot
251+
#if !compiler(>=6.3)
249252
@Test(.requireSwiftSDK)
250253
func testing() throws {
251254
let swiftSDKID = try #require(Self.getSwiftSDKID())
@@ -313,6 +316,7 @@ extension Trait where Self == ConditionTrait {
313316
}
314317
}
315318
#endif
319+
#endif // compiler(>=6.3)
316320

317321
@Test(.requireSwiftSDK(triple: "wasm32-unknown-wasip1-threads"))
318322
func multithreading() throws {
@@ -338,6 +342,8 @@ extension Trait where Self == ConditionTrait {
338342
}
339343
}
340344

345+
// FIXME: This test fails on the current main snapshot
346+
#if !compiler(>=6.3)
341347
@Test(.requireEmbeddedSwiftInToolchain(triple: "wasm32-unknown-none-wasm"))
342348
func embeddedWasmUnknownNone() throws {
343349
try withPackage(at: "Examples/Embedded") { packageDir, _, runSwift in
@@ -349,6 +355,7 @@ extension Trait where Self == ConditionTrait {
349355
)
350356
}
351357
}
358+
#endif // compiler(>=6.3)
352359

353360
@Test(.requireEmbeddedSwiftInSwiftSDK())
354361
func embeddedWasmUnknownWasi() throws {

0 commit comments

Comments
 (0)