Update tests to match the changed text

This commit is contained in:
Tim Kientzle
2023-11-07 11:19:12 -08:00
parent d16e493856
commit 2a0c5890fe

View File

@@ -107,9 +107,10 @@ CastTrapsTestSuite.test("${t1}__${t2}")
protocol P2 {}
if #available(SwiftStdlib 5.5, *) {
CastTrapsTestSuite.test("Unexpected null")
.crashOutputMatches("Found unexpected null pointer value while trying to cast value of type '")
.crashOutputMatches("Non-Optional value of type '")
.crashOutputMatches("Foo'")
.crashOutputMatches(" to '")
.crashOutputMatches("holds a null pointer")
.crashOutputMatches("(Detected while casting to '")
.crashOutputMatches("P2'")
.code
{
@@ -127,9 +128,9 @@ CastTrapsTestSuite.test("Unexpected null")
#if _runtime(_ObjC)
if #available(SwiftStdlib 5.5, *) {
CastTrapsTestSuite.test("Unexpected Obj-C null")
.crashOutputMatches("Found unexpected null pointer value while trying to cast value of type '")
.crashOutputMatches("NSObject'")
.crashOutputMatches(" to '")
.crashOutputMatches("Non-Optional value of type 'NSObject'")
.crashOutputMatches("holds a null pointer")
.crashOutputMatches("(Detected while casting to '")
.crashOutputMatches("P2'")
.code
{