File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -70,18 +70,16 @@ func isP<T>(_ t: T) -> Bool {
70
70
return t is P
71
71
}
72
72
73
- CastsTests . test ( " Dynamic casts of CF types to protocol existentials " ) {
73
+ CastsTests . test ( " Dynamic casts of CF types to protocol existentials " )
74
+ . skip ( . custom(
75
+ { !_isDebugAssertConfiguration( ) } ,
76
+ reason: " This test behaves unpredictably in optimized mode. " ) )
77
+ . code {
74
78
expectTrue ( isP ( 10 as Int ) )
75
79
76
80
// FIXME: SR-2289: dynamic casting of CF types to protocol existentials
77
81
// should work, but there is a bug in the runtime that prevents them from
78
82
// working.
79
- if !_isDebugAssertConfiguration( ) {
80
- // FIXME: this test should not crash. It currently crashes in optimized
81
- // mode because the optimizer assumes that the type conforms, but then the
82
- // runtime disagrees.
83
- expectCrashLater ( )
84
- }
85
83
expectFailure {
86
84
expectTrue ( isP ( CFBitVector . makeImmutable ( from: [ 10 , 20 ] ) ) )
87
85
}
You can’t perform that action at this time.
0 commit comments