Skip to content

Commit 84a354e

Browse files
committed
Update testcase.
In its old form this shouldn't actually have worked, but for some reason it did.
1 parent ec7c358 commit 84a354e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

lldb/packages/Python/lldbsuite/test/lang/swift/clangimporter/dynamic_type_resolution_import_conflict/TestSwiftDynamicTypeResolutionImportConflict.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,11 @@ def test(self):
6060
self.expect("bt", substrs=['Dylib.swift'])
6161
self.expect("fr v -d no-dynamic-values -- input",
6262
substrs=['(Dylib.LibraryProtocol) input'])
63+
64+
# Because we are now in a per-module scratch context, we don't
65+
# expect dynamic type resolution to find a type defined inside
66+
# the other dylib.
6367
self.expect("fr v -d run-target -- input",
64-
substrs=['(a.FromMainModule) input'])
68+
substrs=['(Dylib.LibraryProtocol) input'])
6569
self.expect("expr -d run-target -- input",
66-
substrs=['(a.FromMainModule) $R0'])
67-
68-
if __name__ == '__main__':
69-
import atexit
70-
lldb.SBDebugger.Initialize()
71-
atexit.register(lldb.SBDebugger.Terminate)
72-
unittest2.main()
70+
substrs=['(Dylib.LibraryProtocol)'])

0 commit comments

Comments
 (0)