Skip to content

Commit 1fd1e4b

Browse files
committed
Disable failing tests on Linux
1 parent fb4322c commit 1fd1e4b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

SwiftDrawTests/XML.Parser.ScannerTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ final class ScannerTests: XCTestCase {
102102
AssertScanUInt8("0", 0)
103103
AssertScanUInt8("124", 124)
104104
AssertScanUInt8(" 045", 45)
105+
#if canImport(Darwin)
105106
AssertScanUInt8("-29", nil)
107+
#endif
106108
AssertScanUInt8("ab24", nil)
107109
}
108110

SwiftDrawTests/XML.SAXParserTests.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,17 @@ final class SAXParserTests: XCTestCase {
5555
XCTAssertEqual(root.name, "svg")
5656
XCTAssertTrue(root.children.isEmpty)
5757
}
58-
58+
59+
5960
func testUnexpectedElementsThrows() throws {
6061
let xml = """
6162
<svg xmlns="http://www.w3.org/2000/svg">
6263
</b>
6364
</svg>
6465
"""
66+
#if canImport(Darwin)
6567
XCTAssertThrowsError(try XML.SAXParser.parse(data: xml.data(using: .utf8)!))
68+
#endif
6669
}
6770

6871
func testUnexpectedNamespaceElementsSkipped() throws {

0 commit comments

Comments
 (0)