8000 [lldb][nfc] Fix incorrect "class" usage in a test · felipepiovezan/llvm-project@fc9cdb2 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc9cdb2

Browse files
felipepiovezanadrian-prantl
authored andcommitted
[lldb][nfc] Fix incorrect "class" usage in a test
We had a `class` called `MY_STRUCT`.
1 parent e066168 commit fc9cdb2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lldb/test/API/lang/swift/closures_var_not_captured/TestSwiftClosureVarNotCaptured.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,26 +111,26 @@ def test_ctor_class_closure(self):
111111
self.build()
112112
(target, process, thread) = self.get_to_bkpt("break_ctor_class")
113113
check_not_captured_error(
114-
self, thread.frames[0], "input", "MY_STRUCT.init(input:)"
114+
self, thread.frames[0], "input", "MY_CLASS.init(input:)"
115115
)
116116
check_not_captured_error(
117-
self, thread.frames[0], "find_me", "MY_STRUCT.init(input:)"
117+
self, thread.frames[0], "find_me", "MY_CLASS.init(input:)"
118118
)
119119
check_no_enhanced_diagnostic(self, thread.frames[0], "dont_find_me")
120120

121121
lldbutil.continue_to_source_breakpoint(
122-
self, process, "break_static_member", lldb.SBFileSpec("main.swift")
122+
self, process, "break_static_member_class", lldb.SBFileSpec("main.swift")
123123
)
124124
check_not_captured_error(
125125
self,
126126
thread.frames[0],
127127
"input_static",
128-
"static MY_STRUCT.static_func(input_static:)",
128+
"static MY_CLASS.static_func(input_static:)",
129129
)
130130
check_not_captured_error(
131131
self,
132132
thread.frames[0],
133133
"find_me_static",
134-
"static MY_STRUCT.static_func(input_static:)",
134+
"static MY_CLASS.static_func(input_static:)",
135135
)
136136
check_no_enhanced_diagnostic(self, thread.frames[0], "dont_find_me_static")

lldb/test/API/lang/swift/closures_var_not_captured/main.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func func_3(arg: Int) async {
8787
print(dont_find_me)
8888
}
8989

90-
class MY_STRUCT {
90+
class MY_CLASS {
9191
init(input: [Int]) {
9292
let find_me = "hello"
9393
let _ = input.map {
@@ -99,7 +99,7 @@ class MY_STRUCT {
9999
static func static_func(input_static: [Int]) {
100100
let find_me_static = "hello"
101101
let _ = input_static.map {
102-
return $0 // break_static_member
102+
return $0 // break_static_member_class
103103
}
104104
let dont_find_me_static = "hello"
105105
}
@@ -108,5 +108,5 @@ class MY_STRUCT {
108108
func_1(arg: 42)
109109
func_2(arg: 42)
110110
await func_3(arg: 42)
111-
let _ = MY_STRUCT(input: [1, 2])
112-
MY_STRUCT.static_func(input_static: [42])
111+
let _ = MY_CLASS(input: [1, 2])
112+
MY_CLASS.static_func(input_static: [42])

0 commit comments

Comments
 (0)
0