<rdar://problem/13558484>
authorEnrico Granata <egranata@apple.com>
Thu, 11 Apr 2013 22:55:45 +0000 (22:55 +0000)
committerEnrico Granata <egranata@apple.com>
Thu, 11 Apr 2013 22:55:45 +0000 (22:55 +0000)
This makes the dynamic values test case work for both libc++ and libstdcpp

llvm-svn: 179333

lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py

index a40479cf39733819abce8bce54d17e2a5e958e30..6922122c347106270e8756163f8bf58a217f0176 100644 (file)
@@ -82,9 +82,13 @@ class DynamicValueTestCase(TestBase):
         contained_auto_ptr = this_dynamic.GetChildMemberWithName ('m_client_A', use_dynamic)
         self.assertTrue (contained_auto_ptr)
         contained_b = contained_auto_ptr.GetChildMemberWithName ('_M_ptr', use_dynamic)
+        if not contained_b:
+                contained_b = contained_auto_ptr.GetChildMemberWithName ('__ptr_', use_dynamic)
         self.assertTrue (contained_b)
         
         contained_b_static = contained_auto_ptr.GetChildMemberWithName ('_M_ptr', no_dynamic)
+        if not contained_b_static:
+                contained_b_static = contained_auto_ptr.GetChildMemberWithName ('__ptr_', no_dynamic)
         self.assertTrue (contained_b_static)
         
         contained_b_addr = int (contained_b.GetValue(), 16)
@@ -177,7 +181,7 @@ class DynamicValueTestCase(TestBase):
         # The "frame var" code uses another path to get into children, so let's
         # make sure that works as well:
 
-        self.expect('frame var -d run-target anotherA.m_client_A._M_ptr', 'frame var finds its way into a child member',
+        self.expect('frame var -d run-target --ptr-depth=2 --show-types anotherA.m_client_A', 'frame var finds its way into a child member',
             patterns = ['\(B \*\)'])
 
         # Now make sure we also get it right for a reference as well: