Skip to content

Commit 3894845

Browse files
authored
Work around a compile-time error on the 6.2 toolchain (Windows only). (#1306)
Disable a test that is failing to build on Windows with the 6.2 toolchain. Works around swiftlang/swift#84184. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 3366f65 commit 3894845

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/TestingTests/AttachmentTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ struct AttachmentTests {
5353
#expect(attachment.description.contains("MySendableAttachable("))
5454
}
5555

56+
#if compiler(>=6.3) || !os(Windows) // WORKAROUND: swift-#84184
5657
@Test func moveOnlyDescription() {
5758
let attachableValue = MyAttachable(string: "<!doctype html>")
5859
let attachment = Attachment(attachableValue, named: "AttachmentTests.saveValue.html")
5960
#expect(attachment.description.contains(#""\#(attachment.preferredName)""#))
6061
#expect(attachment.description.contains("'MyAttachable'"))
6162
}
63+
#endif
6264

6365
#if !SWT_NO_FILE_IO
6466
func compare(_ attachableValue: borrowing MySendableAttachable, toContentsOfFileAtPath filePath: String) throws {

0 commit comments

Comments
 (0)