Skip to content

Commit 2a0c589

Browse files
committed
Update tests to match the changed text
1 parent d16e493 commit 2a0c589

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/Casting/CastTraps.swift.gyb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ CastTrapsTestSuite.test("${t1}__${t2}")
107107
protocol P2 {}
108108
if #available(SwiftStdlib 5.5, *) {
109109
CastTrapsTestSuite.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)
128129
if #available(SwiftStdlib 5.5, *) {
129130
CastTrapsTestSuite.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
{

0 commit comments

Comments
 (0)