File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,10 @@ CastTrapsTestSuite.test("${t1}__${t2}")
107107protocol P2 { }
108108if #available( SwiftStdlib 5 . 5 , * ) {
109109CastTrapsTestSuite . test ( " Unexpected null " )
110- . crashOutputMatches ( " Found unexpected null pointer value while trying to cast value of type '" )
110+ . crashOutputMatches ( " Non-Optional value of type '" )
111111 . crashOutputMatches ( " Foo' " )
112- . crashOutputMatches ( " to ' " )
112+ . crashOutputMatches ( " holds a null pointer " )
113+ . crashOutputMatches ( " (Detected while casting to ' " )
113114 . crashOutputMatches ( " P2' " )
114115 . code
115116{
@@ -127,9 +128,9 @@ CastTrapsTestSuite.test("Unexpected null")
127128#if _runtime(_ObjC)
128129if #available( SwiftStdlib 5 . 5 , * ) {
129130CastTrapsTestSuite . test ( " Unexpected Obj-C null " )
130- . crashOutputMatches ( " Found unexpected null pointer value while trying to cast value of type '" )
131- . crashOutputMatches ( " NSObject' " )
132- . crashOutputMatches ( " to ' " )
131+ . crashOutputMatches ( " Non-Optional value of type 'NSObject '" )
132+ . crashOutputMatches ( " holds a null pointer " )
133+ . crashOutputMatches ( " (Detected while casting to '" )
133134 . crashOutputMatches ( " P2' " )
134135 . code
135136{
You can’t perform that action at this time.
0 commit comments