Skip to content

Commit 030f3c8

Browse files
committed
[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
1 parent 158db2b commit 030f3c8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

test/Runtime/protocol-conformance-cache-objc.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
// UNSUPPORTED: DARWIN_SIMULATOR=xros
1212
// UNSUPPORTED: use_os_stdlib
1313

14+
// The optimizer will remove many of these conformance checks due to statically
15+
// knowing the result.
16+
// UNSUPPORTED: swift_test_mode_optimize
17+
// UNSUPPORTED: swift_test_mode_optimize_size
18+
1419
import Foundation
1520

1621
protocol Proto {}

test/Runtime/protocol-conformance-cache.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
// UNSUPPORTED: DARWIN_SIMULATOR=xros
1111
// UNSUPPORTED: use_os_stdlib
1212

13+
// The optimizer will remove many of these conformance checks due to statically
14+
// knowing the result.
15+
// UNSUPPORTED: swift_test_mode_optimize
16+
// UNSUPPORTED: swift_test_mode_optimize_size
17+
1318
protocol Proto {}
1419
extension Proto {
1520
static var selfType: Any.Type { Self.self }

0 commit comments

Comments
 (0)