summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-07-20 18:29:32 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-07-20 18:29:32 +0000
commita17c7e051733a59f29547989c2d7533fc026a58e (patch)
tree149e0bb0e71983c97680548253e6f5f9ca66560e
parent8d11490771c6487703d67a65ca3b945e80362dda (diff)
downloadbcm5719-llvm-a17c7e051733a59f29547989c2d7533fc026a58e.tar.gz
bcm5719-llvm-a17c7e051733a59f29547989c2d7533fc026a58e.zip
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. llvm-svn: 135597
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py b/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
index 55f7e947eca..7758043386b 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
@@ -129,6 +129,22 @@ class DataFormatterTestCase(TestBase):
'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 = {',
OpenPOWER on IntegriCloud