From 674bc7b0c4d3f2f3edac0b6889d5e0bf2a02edfb Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Fri, 29 May 2015 14:54:46 +0000 Subject: [PATCH] XFAIL two tests for android bug #23694 llvm-svn: 238558 --- .../inferior-crashing/TestInferiorCrashing.py | 1 + .../recursive-inferior/TestRecursiveInferior.py | 1 + lldb/test/lldbtest.py | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py b/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py index 8ad5e429c89f..344bc17b7f46 100644 --- a/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py +++ b/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py @@ -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() diff --git a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py index cd89fe1cd536..5bc469e25536 100644 --- a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py +++ b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py @@ -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() diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 919d4d6a67e0..d5cc8b44df58 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -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