Fix broken testcase: ignore LLDB output that warns about more elements than can be...
authorDaniel Malea <daniel.malea@intel.com>
Thu, 14 Feb 2013 00:30:40 +0000 (00:30 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Thu, 14 Feb 2013 00:30:40 +0000 (00:30 +0000)
- test could be re-written at some point, but right now just trying to clean up known failures for the linux buildbot.

llvm-svn: 175114

lldb/test/lang/cpp/unique-types/TestUniqueTypes.py

index c1414c1..712c2bc 100644 (file)
@@ -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'])