Skip to content

Commit 0b5e7e4

Browse files
authored
Merge pull request #802 from nkcsgexi/abi-checker-test-update
ABIChecker: update testABIComparisonEndToEnd
2 parents 188b0fd + ea6cbd2 commit 0b5e7e4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/SwiftDriverTests/APIDigesterTests.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,9 @@ class APIDigesterTests: XCTestCase {
385385
XCTAssertFalse(driver2.diagnosticEngine.hasErrors)
386386
let contents = try localFileSystem.readFileContents(path.appending(component: "changes.dia"))
387387
let diags = try SerializedDiagnostics(bytes: contents)
388-
XCTAssertEqual(diags.diagnostics.map(\.text), [
389-
"ABI breakage: var MyStruct.a in a non-resilient type changes position from 0 to 1",
390-
"ABI breakage: var MyStruct.b in a non-resilient type changes position from 1 to 0"
391-
])
388+
let messages = diags.diagnostics.map(\.text)
389+
XCTAssertTrue(messages.contains("ABI breakage: var MyStruct.a in a non-resilient type changes position from 0 to 1"))
390+
XCTAssertTrue(messages.contains("ABI breakage: var MyStruct.b in a non-resilient type changes position from 1 to 0"))
392391
}
393392
}
394393
}

0 commit comments

Comments
 (0)