[Test] Disable some runtime tests in back deployment testing.

These tests are testing changes that aren't present in older runtimes:

test/stdlib/SwiftValueNSObject.swift
test/stdlib/SwiftObjectNSObject.swift
test/stdlib/BridgeEquatableToObjC.swift

And this test looks for some wording that's different on older runtimes. This one already does availability checks, so we change the requirements to SwiftStdlib 5.11:

test/Casting/CastTraps.swift.gyb
This commit is contained in:
Mike Ash
2023-12-07 12:59:09 -05:00
parent 43d8c37f81
commit 1770b3d3d7
4 changed files with 11 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ CastTrapsTestSuite.test("${t1}__${t2}")
% end
protocol P2 {}
if #available(SwiftStdlib 5.5, *) {
if #available(SwiftStdlib 5.11, *) {
CastTrapsTestSuite.test("Unexpected null")
.crashOutputMatches("Found a null pointer in a value of type '")
.crashOutputMatches("Foo'")
@@ -125,7 +125,7 @@ CastTrapsTestSuite.test("Unexpected null")
#if _runtime(_ObjC)
if #available(SwiftStdlib 5.5, *) {
if #available(SwiftStdlib 5.11, *) {
CastTrapsTestSuite.test("Unexpected Obj-C null")
.crashOutputMatches("Found a null pointer in a value of type 'NSObject'")
.crashOutputMatches("(Detected while casting to '")

View File

@@ -6,6 +6,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// UNSUPPORTED: use_os_stdlib
// UNSUPPORTED: back_deployment_runtime
import StdlibUnittest
import Foundation

View File

@@ -25,6 +25,9 @@
// rdar://problem/56959761
// UNSUPPORTED: OS=watchos
// UNSUPPORTED: use_os_stdlib
// UNSUPPORTED: back_deployment_runtime
import Foundation
class C {

View File

@@ -22,6 +22,9 @@
// REQUIRES: objc_interop
// UNSUPPORTED: use_os_stdlib
// UNSUPPORTED: back_deployment_runtime
import Foundation
struct C: CustomDebugStringConvertible {