Skip to content

Commit 2d4782c

Browse files
committed
Make test more robust against codegen fluctuations
1 parent b355564 commit 2d4782c

File tree

1 file changed

+5
-0
lines changed
  • lldb/test/API/functionalities/data-formatter/swift-unsafe

1 file changed

+5
-0
lines changed

lldb/test/API/functionalities/data-formatter/swift-unsafe/main.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ func main() {
103103

104104
colors.withUnsafeBufferPointer {
105105
let buf = $0
106+
print("break")
106107
//% self.expect("frame variable -d run-target buf",
107108
//% patterns=[
108109
//% '\(UnsafeBufferPointer<(.*)\.ColorCode>\) buf = 2 values \(0[xX][0-9a-fA-F]+\) {',
@@ -139,6 +140,7 @@ func main() {
139140

140141
numbers.withUnsafeBufferPointer {
141142
let buf = $0
143+
print("break")
142144
//% self.expect("frame variable -d run-target buf",
143145
//% patterns=[
144146
//% '\(UnsafeBufferPointer<(.*)\.Number<Double>>\) buf = 2 values \(0[xX][0-9a-fA-F]+\) {',
@@ -153,20 +155,23 @@ func main() {
153155
bytes.withUnsafeBufferPointer {
154156
let buf = $0
155157
let rawbuf = UnsafeRawBufferPointer(buf)
158+
print("break")
156159
//% self.expect("frame variable -d run-target rawbuf",
157160
//% patterns=[
158161
//% '\(UnsafeRawBufferPointer\) rawbuf = 256 values \(0[xX][0-9a-fA-F]+\) {',
159162
//% '\[([0-9]+)\] = (\\1)'
160163
//% ])
161164
typealias ByteBuffer = UnsafeRawBufferPointer;
162165
let alias = rawbuf as ByteBuffer
166+
print("break")
163167
//% self.expect("frame variable -d run-target alias",
164168
//% patterns=[
165169
//% '\(ByteBuffer\) alias = 256 values \(0[xX][0-9a-fA-F]+\) {',
166170
//% '\[([0-9]+)\] = (\\1)',
167171
//% ])
168172
typealias ByteBufferAlias = ByteBuffer
169173
let secondAlias = alias as ByteBufferAlias
174+
print("break")
170175
//% self.expect("frame variable -d run-target secondAlias",
171176
//% patterns=[
172177
//% '\(ByteBufferAlias\) secondAlias = 256 values \(0[xX][0-9a-fA-F]+\) {',

0 commit comments

Comments
 (0)