XFAIL two tests for android
authorPavel Labath <labath@google.com>
Fri, 29 May 2015 14:54:46 +0000 (14:54 +0000)
committerPavel Labath <labath@google.com>
Fri, 29 May 2015 14:54:46 +0000 (14:54 +0000)
bug #23694

llvm-svn: 238558

lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py
lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
lldb/test/lldbtest.py

index 8ad5e42..344bc17 100644 (file)
@@ -67,6 +67,7 @@ class CrashingInferiorTestCase(TestBase):
         self.inferior_crashing_step_after_break()
 
     @skipIfFreeBSD # llvm.org/pr16684
+    @expectedFailureAndroid("llvm.org/pr23694")
     def test_inferior_crashing_step_after_break_dwarf(self):
         """Test that lldb functions correctly after stepping through a crash."""
         self.buildDwarf()
index cd89fe1..5bc469e 100644 (file)
@@ -67,6 +67,7 @@ class CrashingRecursiveInferiorTestCase(TestBase):
         self.recursive_inferior_crashing_step_after_break()
 
     @skipIfFreeBSD # llvm.org/pr16684
+    @expectedFailureAndroid("llvm.org/pr23694")
     def test_recursive_inferior_crashing_step_after_break_dwarf(self):
         """Test that lldb functions correctly after stepping through a crash."""
         self.buildDwarf()
index 919d4d6..d5cc8b4 100644 (file)
@@ -654,6 +654,12 @@ def expectedFailureLinux(bugnumber=None, compilers=None):
 def expectedFailureWindows(bugnumber=None, compilers=None):
     return expectedFailureOS(['windows'], bugnumber, compilers)
 
+def expectedFailureAndroid(bugnumber=None):
+    def fn(self):
+        triple = self.dbg.GetSelectedPlatform().GetTriple()
+        return re.match(".*-.*-.*-android", triple)
+    return expectedFailure(fn, bugnumber)
+
 def expectedFailureLLGS(bugnumber=None, compilers=None):
     def fn(self):
         # llgs local is only an option on Linux targets