[Test] Disable protocol-conformance-cache tests when tests are optimized.

These tests need to perform various conformance checks that can be statically known, and the optimizer removes them.

rdar://155924190
This commit is contained in:
Mike Ash
2025-07-22 11:55:10 -04:00
parent 158db2b279
commit 030f3c889d
2 changed files with 10 additions and 0 deletions

View File

@@ -11,6 +11,11 @@
// UNSUPPORTED: DARWIN_SIMULATOR=xros
// UNSUPPORTED: use_os_stdlib
// The optimizer will remove many of these conformance checks due to statically
// knowing the result.
// UNSUPPORTED: swift_test_mode_optimize
// UNSUPPORTED: swift_test_mode_optimize_size
import Foundation
protocol Proto {}

View File

@@ -10,6 +10,11 @@
// UNSUPPORTED: DARWIN_SIMULATOR=xros
// UNSUPPORTED: use_os_stdlib
// The optimizer will remove many of these conformance checks due to statically
// knowing the result.
// UNSUPPORTED: swift_test_mode_optimize
// UNSUPPORTED: swift_test_mode_optimize_size
protocol Proto {}
extension Proto {
static var selfType: Any.Type { Self.self }