[Lldb-commits] [lldb] r269759 - xfail TestTopLevelExprs for Android API 21-22 (llvm.org/pr27787)

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Tue May 17 05:42:25 PDT 2016


Author: tberghammer
Date: Tue May 17 07:42:25 2016
New Revision: 269759

URL: http://llvm.org/viewvc/llvm-project?rev=269759&view=rev
Log:
xfail TestTopLevelExprs for Android API 21-22 (llvm.org/pr27787)

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/TestTopLevelExprs.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/TestTopLevelExprs.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/TestTopLevelExprs.py?rev=269759&r1=269758&r2=269759&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/TestTopLevelExprs.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/TestTopLevelExprs.py Tue May 17 07:42:25 2016
@@ -50,6 +50,7 @@ class TopLevelExpressionsTestCase(TestBa
         self.runCmd("run", RUN_SUCCEEDED)
 
     @add_test_categories(['pyapi'])
+    @expectedFailureAndroid(api_levels=[21, 22], bugnumber="llvm.org/pr27787")
     def test_top_level_expressions(self):
         self.build_and_run()
 
@@ -78,6 +79,7 @@ class TopLevelExpressionsTestCase(TestBa
         for expression in expressions:
             self.frame().EvaluateExpression(expression, options)
 
-        resultFromTopLevel = self.frame().EvaluateExpression("doTest()").GetValueAsUnsigned()
+        resultFromTopLevel = self.frame().EvaluateExpression("doTest()")
 
-        self.assertEqual(resultFromCode, resultFromTopLevel)
+        self.assertTrue(resultFromTopLevel.IsValid())
+        self.assertEqual(resultFromCode, resultFromTopLevel.GetValueAsUnsigned())




More information about the lldb-commits mailing list