|
@@ -1422,7 +1422,11 @@ class ServerTrustPolicyCertificatesInBundleTestCase: ServerTrustPolicyTestCase {
|
|
|
#if os(OSX)
|
|
#if os(OSX)
|
|
|
// For some reason, OSX is allowing all certificates to be considered valid. Need to file a
|
|
// For some reason, OSX is allowing all certificates to be considered valid. Need to file a
|
|
|
// rdar demonstrating this behavior.
|
|
// rdar demonstrating this behavior.
|
|
|
- XCTAssertEqual(certificates.count, 23, "Expected 23 well-formed certificates")
|
|
|
|
|
|
|
+ if #available(OSX 10.12, *) {
|
|
|
|
|
+ XCTAssertEqual(certificates.count, 19, "Expected 19 well-formed certificates")
|
|
|
|
|
+ } else {
|
|
|
|
|
+ XCTAssertEqual(certificates.count, 23, "Expected 23 well-formed certificates")
|
|
|
|
|
+ }
|
|
|
#else
|
|
#else
|
|
|
XCTAssertEqual(certificates.count, 19, "Expected 19 well-formed certificates")
|
|
XCTAssertEqual(certificates.count, 19, "Expected 19 well-formed certificates")
|
|
|
#endif
|
|
#endif
|