diff --git a/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py b/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py index dd6cf221303b..f291f0372405 100644 --- a/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py +++ b/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py @@ -159,10 +159,9 @@ class DynamicValueTestCase(TestBase): self.examine_value_object_of_this_ptr (this_static, this_dynamic, myB_loc) # Get "this" using the EvaluateExpression: - # These tests fail for now because EvaluateExpression doesn't currently support dynamic typing... - #this_static = frame.EvaluateExpression ('this', False) - #this_dynamic = frame.EvaluateExpression ('this', True) - #self.examine_value_object_of_this_ptr (this_static, this_dynamic, myB_loc) + this_static = frame.EvaluateExpression ('this', False) + this_dynamic = frame.EvaluateExpression ('this', True) + self.examine_value_object_of_this_ptr (this_static, this_dynamic, myB_loc) # The "frame var" code uses another path to get into children, so let's # make sure that works as well: diff --git a/lldb/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py b/lldb/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py index fbe727a115f3..50c3bb450682 100644 --- a/lldb/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py +++ b/lldb/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py @@ -147,10 +147,10 @@ class ObjCDynamicValueTestCase(TestBase): self.examine_SourceDerived_ptr (object_dynamic) # Get "this" using the EvaluateExpression: - # These tests fail for now because EvaluateExpression doesn't currently support dynamic typing... - #object_static = frame.EvaluateExpression ('object', noDynamic) - #object_dynamic = frame.EvaluateExpression ('object', useDynamic) - #self.examine_value_object_of_object_ptr (object_static, object_dynamic, myB_loc) + object_static = frame.EvaluateExpression ('object', noDynamic) + object_dynamic = frame.EvaluateExpression ('object', useDynamic) + del (object_static) + self.examine_SourceDerived_ptr (object_dynamic) # Continue again to the handle_SourceBase and make sure we get the correct dynamic value. # This one looks exactly the same, but in fact this is an "un-KVO'ed" version of SourceBase, so