diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/cpp/type_lookup/TestCppTypeLookup.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/type_lookup/TestCppTypeLookup.py b/lldb/packages/Python/lldbsuite/test/lang/cpp/type_lookup/TestCppTypeLookup.py index 8fb003bb650..94d52e368e8 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/cpp/type_lookup/TestCppTypeLookup.py +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/type_lookup/TestCppTypeLookup.py @@ -38,6 +38,11 @@ class TestCppTypeLookup(TestBase): # Get frame for current thread frame = thread.GetSelectedFrame() + # We are testing LLDB's type lookup machinery, but if we inject local + # variables, the types for those will be found because they have been + # imported through the variable, not because the type lookup worked. + self.runCmd("settings set target.experimental.inject-local-vars false") + # Make sure we don't accidentally accept structures that exist only # in namespaces when evaluating expressions with top level types. # Prior to the revision that added this test, we would accidentally |