Skip to content

Commit d745096

Browse files
committed
Conditionalize KVOKeyPaths tests that only work with Swift 5.1 (2)
This test was added in f34ef5d for a fix in 5.1 and is going to fail in 5.0 rdar://54754307
1 parent 987e2c6 commit d745096

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/stdlib/KVOKeyPaths.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ let optionalKeyPathObserver = testObjectForOptionalKeyPath.observe(\.optionalObj
214214
testObjectForOptionalKeyPath.optionalObject = nil
215215
testObjectForOptionalKeyPath.optionalObject = "foo"
216216

217-
// CHECK-LABEL: observe keyPath with optional value
218-
// CHECK-NEXT: oldValue = Optional(nil), newValue = Optional(nil)
219-
// CHECK-NEXT: oldValue = Optional(nil), newValue = Optional(nil)
220-
// CHECK-NEXT: oldValue = Optional(nil), newValue = Optional(Optional("foo"))
217+
// CHECK-51-LABEL: observe keyPath with optional value
218+
// CHECK-51-NEXT: oldValue = Optional(nil), newValue = Optional(nil)
219+
// CHECK-51-NEXT: oldValue = Optional(nil), newValue = Optional(nil)
220+
// CHECK-51-NEXT: oldValue = Optional(nil), newValue = Optional(Optional("foo"))

0 commit comments

Comments
 (0)