Skip to content

Commit e3bb971

Browse files
Merge pull request #8074 from adrian-prantl/flaky-test
Work around flaky test by moving code around
2 parents 04a0a33 + a25c350 commit e3bb971

File tree

1 file changed

+9
-3
lines changed
  • lldb/test/API/lang/swift/external_provider_extra_inhabitants

1 file changed

+9
-3
lines changed
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import CoreGraphics
22

3+
func use<T>(_ t: T) {}
4+
35
public class MyClass {
46
// CGImage is consulted through the external info provider.
57
// This field is here to test that LLDB correctly calculates
@@ -8,7 +10,11 @@ public class MyClass {
810
public var unused: CGImage? = nil
911
public var size: CGSize? = nil
1012
}
11-
let object = MyClass()
12-
object.size = CGSize(width:10, height:20)
13-
print(1) // Set breakpoint here.
13+
func f() {
14+
let object = MyClass()
15+
object.size = CGSize(width:10, height:20)
16+
use(object)
17+
print("Set breakpoint here.")
18+
}
1419

20+
f()

0 commit comments

Comments
 (0)