Skip to content

Commit d87abe7

Browse files
committed
fixup! merge test cases; fix comment
1 parent be004c1 commit d87abe7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

lldb/test/API/lang/cpp/typedef-to-outer-fwd/TestTypedefToOuterFwd.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
class TestCaseTypedefToOuterFwd(TestBase):
88
"""
9-
We a global variable whose type is forward declared. We then
10-
try to get the Ref typedef (whose definition is in either main.o
11-
or lib.o). Make sure we correctly resolve this typedef.
9+
We find a global variable whose type is forward declared
10+
(whose definition is in either main.o or lib.o). We then
11+
try to get the 'Ref' typedef nested within that forward
12+
declared type. This test makes sure we correctly resolve
13+
this typedef.
1214
1315
We test this for two cases, where the definition lives
1416
in main.o or lib.o.
@@ -29,12 +31,8 @@ def check_global_var(self, target, name: str):
2931

3032
self.assertEqual(ref.GetCanonicalType(), var_type)
3133

32-
def test_definition_in_main(self):
34+
def test(self):
3335
self.build()
3436
target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
3537
self.check_global_var(target, "gLibExternalDef")
36-
37-
def test_definition_in_lib(self):
38-
self.build()
39-
target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
4038
self.check_global_var(target, "gMainExternalDef")

0 commit comments

Comments
 (0)