[Lldb-commits] [lldb] r175114 - Fix broken testcase: ignore LLDB output that warns about more elements than can be displayed.
Daniel Malea
daniel.malea at intel.com
Wed Feb 13 16:30:41 PST 2013
Author: dmalea
Date: Wed Feb 13 18:30:40 2013
New Revision: 175114
URL: http://llvm.org/viewvc/llvm-project?rev=175114&view=rev
Log:
Fix broken testcase: ignore LLDB output that warns about more elements than can be displayed.
- test could be re-written at some point, but right now just trying to clean up known failures for the linux buildbot.
Modified:
lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py
Modified: lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py?rev=175114&r1=175113&r2=175114&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py (original)
+++ lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py Wed Feb 13 18:30:40 2013
@@ -62,8 +62,8 @@ class UniqueTypesTestCase(TestBase):
self.runCmd("frame variable --show-types longs")
output = self.res.GetOutput()
for x in [line.strip() for line in output.split(os.linesep)]:
- # Skip empty line or closing brace.
- if not x or x == '}':
+ # Skip empty line, closing brace, and messages about more variables than can be displayed.
+ if not x or x == '}' or x == '...' or "Some of your variables have more members than the debugger will show by default" in x:
continue
self.expect(x, "Expect type 'long'", exe=False,
substrs = ['long'])
@@ -72,8 +72,8 @@ class UniqueTypesTestCase(TestBase):
self.runCmd("frame variable --show-types shorts")
output = self.res.GetOutput()
for x in [line.strip() for line in output.split(os.linesep)]:
- # Skip empty line or closing brace.
- if not x or x == '}':
+ # Skip empty line, closing brace, and messages about more variables than can be displayed.
+ if not x or x == '}' or x == '...' or "Some of your variables have more members than the debugger will show by default" in x:
continue
self.expect(x, "Expect type 'short'", exe=False,
substrs = ['short'])
More information about the lldb-commits
mailing list