[Lldb-commits] [lldb] r135597 - /lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
Johnny Chen
johnny.chen at apple.com
Wed Jul 20 11:29:32 PDT 2011
Author: johnny
Date: Wed Jul 20 13:29:32 2011
New Revision: 135597
URL: http://llvm.org/viewvc/llvm-project?rev=135597&view=rev
Log:
Skip the remaining -Y? (skipping ? layers of summaries) tests if using a known version
of Apple gcc build which produces wrong namespace for std::string in debug info.
Modified:
lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py?rev=135597&r1=135596&r2=135597&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py Wed Jul 20 13:29:32 2011
@@ -129,6 +129,22 @@
'm_child2 = Level 4',
'}'])
+ # Bad debugging info on SnowLeopard gcc (Apple Inc. build 5666).
+ # Skip the following tests if the condition is met.
+ if self.getCompiler().endswith('gcc') and not self.getCompiler().endswith('llvm-gcc'):
+ import re, lldbutil
+ gcc_version_output = system([lldbutil.which(self.getCompiler()), "-v"])[1]
+ #print "my output:", gcc_version_output
+ for line in gcc_version_output.split(os.linesep):
+ m = re.search('\(Apple Inc\. build ([0-9]+)\)', line)
+ #print "line:", line
+ if m:
+ gcc_build = int(m.group(1))
+ #print "gcc build:", gcc_build
+ if gcc_build >= 5666:
+ # rdar://problem/9804600"
+ self.skipTest("rdar://problem/9804600 wrong namespace for std::string in debug info")
+
# Expand same expression, skipping 3 layers of summaries
self.expect('frame variable data1.m_child1->m_child2 -T -Y3',
substrs = ['(DeepData_3) data1.m_child1->m_child2 = {',
More information about the lldb-commits
mailing list