Skip to content

Commit 713aafe

Browse files
authored
Merge pull request #72354 from tbkka/tbkka-progress-for-bridge-object-test
Add some progress info to make failures here easier to understand
2 parents 926bd6c + fe82cde commit 713aafe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Interpreter/builtin_bridge_object.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func nonPointerBits(_ x: Builtin.BridgeObject) -> UInt {
6363

6464
// Try without any bits set.
6565
if true {
66+
print("No bits set") // CHECK: No bits set
6667
let x = C()
6768
let bo = Builtin.castToBridgeObject(x, 0._builtinWordValue)
6869
let bo2 = bo
@@ -90,6 +91,7 @@ if true {
9091

9192
// Try with all spare bits set.
9293
if true {
94+
print("All spare bits set") // CHECK: All spare bits set
9395
let x = C()
9496
let bo = Builtin.castToBridgeObject(x, NATIVE_SPARE_BITS._builtinWordValue)
9597

@@ -128,6 +130,7 @@ func nonNativeBridgeObject(_ o: AnyObject) -> Builtin.BridgeObject {
128130
// Try with a (probably) tagged pointer. No bits may be masked into a
129131
// non-native object.
130132
if true {
133+
print("Tagged pointer") // CHECK: Tagged pointer
131134
let x = NSNumber(value: 22)
132135
let bo = nonNativeBridgeObject(x)
133136
let bo2 = bo
@@ -159,6 +162,7 @@ var unTaggedString: NSString {
159162

160163
// Try with an un-tagged pointer.
161164
if true {
165+
print("Untagged pointer") // CHECK: Untagged pointer
162166
let x = unTaggedString
163167
let bo = nonNativeBridgeObject(x)
164168
let bo2 = bo
@@ -195,6 +199,8 @@ func hitOptionalSpecifically(_ x: Builtin.BridgeObject?) {
195199
}
196200

197201
if true {
202+
print("BridgeObject") // CHECK: BridgeObject
203+
198204
// CHECK-NEXT: true
199205
print(MemoryLayout<Optional<Builtin.BridgeObject>>.size
200206
== MemoryLayout<Builtin.BridgeObject>.size)

0 commit comments

Comments
 (0)