aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Langford <apl@fb.com>2019-07-23 22:12:16 +0000
committerAlex Langford <apl@fb.com>2019-07-23 22:12:16 +0000
commit45a3fd206fb06f77a08968c99a8172cbf2ccdd0f (patch)
tree9468b964beac3f7a6e123dd742d782f9696e07e0
parent511f7f5785e58a75fd82675336fa7fc90ba45c76 (diff)
downloadllvm-45a3fd206fb06f77a08968c99a8172cbf2ccdd0f.zip
llvm-45a3fd206fb06f77a08968c99a8172cbf2ccdd0f.tar.gz
llvm-45a3fd206fb06f77a08968c99a8172cbf2ccdd0f.tar.bz2
[lldb][test_suite] Update tests with unexpected pass on Android aarch64
Summary: update some test decorates that can actually pass on andriod aarch64 Patch by Wanyi Ye <kusmour@gmail.com> Differential Revision: https://reviews.llvm.org/D64767 llvm-svn: 366858
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py2
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/deleted-executable/TestDeletedExecutable.py4
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/inferior-assert/TestInferiorAssert.py3
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py2
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/target_command/TestTargetCommand.py4
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/target_create_deps/TestTargetCreateDeps.py18
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py6
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py6
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/lang/c/const_variables/TestConstVariables.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/lang/c/global_variables/TestGlobalVariables.py5
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestLldbGdbServer.py1
14 files changed, 37 insertions, 18 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py
index 99b5432..bc3b5e0 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py
@@ -22,7 +22,6 @@ class HardwareBreakpointMultiThreadTestCase(TestBase):
# LLDB supports hardware breakpoints for arm and aarch64 architectures.
@skipIf(archs=no_match(['arm', 'aarch64']))
- @expectedFailureAndroid
def test_hw_break_set_delete_multi_thread(self):
self.build()
self.setTearDownCleanup()
@@ -30,7 +29,6 @@ class HardwareBreakpointMultiThreadTestCase(TestBase):
# LLDB supports hardware breakpoints for arm and aarch64 architectures.
@skipIf(archs=no_match(['arm', 'aarch64']))
- @expectedFailureAndroid
def test_hw_break_set_disable_multi_thread(self):
self.build()
self.setTearDownCleanup()
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/deleted-executable/TestDeletedExecutable.py b/lldb/packages/Python/lldbsuite/test/functionalities/deleted-executable/TestDeletedExecutable.py
index 8364f91..3c84ef0 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/deleted-executable/TestDeletedExecutable.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/deleted-executable/TestDeletedExecutable.py
@@ -18,7 +18,9 @@ class TestDeletedExecutable(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@skipIfWindows # cannot delete a running executable
- @expectedFailureAll(oslist=["linux"]) # determining the architecture of the process fails
+ @expectedFailureAll(oslist=["linux"],
+ triple=no_match('aarch64-.*-android'))
+ # determining the architecture of the process fails
@expectedFailureNetBSD
def test(self):
self.build()
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/inferior-assert/TestInferiorAssert.py b/lldb/packages/Python/lldbsuite/test/functionalities/inferior-assert/TestInferiorAssert.py
index ec3f321..b9caa66 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/inferior-assert/TestInferiorAssert.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/inferior-assert/TestInferiorAssert.py
@@ -51,6 +51,7 @@ class AssertingInferiorTestCase(TestBase):
archs=[
"aarch64",
"arm"],
+ triple=no_match(".*-android"),
bugnumber="llvm.org/pr25338")
@expectedFailureAll(bugnumber="llvm.org/pr26592", triple='^mips')
@expectedFailureNetBSD
@@ -76,6 +77,7 @@ class AssertingInferiorTestCase(TestBase):
archs=[
"aarch64",
"arm"],
+ triple=no_match(".*-android"),
bugnumber="llvm.org/pr25338")
@expectedFailureAll(bugnumber="llvm.org/pr26592", triple='^mips')
@expectedFailureNetBSD
@@ -92,6 +94,7 @@ class AssertingInferiorTestCase(TestBase):
archs=[
"aarch64",
"arm"],
+ triple=no_match(".*-android"),
bugnumber="llvm.org/pr25338")
@expectedFailureAll(bugnumber="llvm.org/pr26592", triple='^mips')
@expectedFailureNetBSD
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
index 59412cb..cc633dc 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
@@ -363,7 +363,7 @@ class LoadUnloadTestCase(TestBase):
# We can't find a breakpoint location for d_init before launching because
# executable dependencies are resolved relative to the debuggers PWD. Bug?
- @expectedFailureAll(oslist=["linux"])
+ @expectedFailureAll(oslist=["linux"], triple=no_match('aarch64-.*-android'))
@skipIfFreeBSD # llvm.org/pr14424 - missing FreeBSD Makefiles/testcase support
@skipIfWindows # Windows doesn't have dlopen and friends, dynamic libraries work differently
@expectedFailureNetBSD
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/target_command/TestTargetCommand.py b/lldb/packages/Python/lldbsuite/test/functionalities/target_command/TestTargetCommand.py
index 71bfff1..3e7c67e 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/target_command/TestTargetCommand.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/target_command/TestTargetCommand.py
@@ -39,9 +39,6 @@ class targetCommandTestCase(TestBase):
self.do_target_command()
- # rdar://problem/9763907
- # 'target variable' command fails if the target program has been run
- @expectedFailureAndroid(archs=['aarch64'])
def test_target_variable_command(self):
"""Test 'target variable' command before and after starting the inferior."""
d = {'C_SOURCES': 'globals.c', 'EXE': self.getBuildArtifact('globals')}
@@ -50,7 +47,6 @@ class targetCommandTestCase(TestBase):
self.do_target_variable_command('globals')
- @expectedFailureAndroid(archs=['aarch64'])
def test_target_variable_command_no_fail(self):
"""Test 'target variable' command before and after starting the inferior."""
d = {'C_SOURCES': 'globals.c', 'EXE': self.getBuildArtifact('globals')}
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/target_create_deps/TestTargetCreateDeps.py b/lldb/packages/Python/lldbsuite/test/functionalities/target_create_deps/TestTargetCreateDeps.py
index a3831f1..2d96433 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/target_create_deps/TestTargetCreateDeps.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/target_create_deps/TestTargetCreateDeps.py
@@ -30,7 +30,10 @@ class TargetDependentsTestCase(TestBase):
self.expect(
"image list", msg, matching=should_match, substrs=['[ 1]'])
- @expectedFailureAll(oslist=["linux"]) #linux does not support loading dependent files
+
+ @expectedFailureAll(oslist=["linux"],
+ triple=no_match(".*-android"))
+ #linux does not support loading dependent files, but android does
@expectedFailureNetBSD
def test_dependents_implicit_default_exe(self):
"""Test default behavior"""
@@ -38,7 +41,9 @@ class TargetDependentsTestCase(TestBase):
self.runCmd("target create " + exe, CURRENT_EXECUTABLE_SET)
self.has_exactly_one_image(False)
- @expectedFailureAll(oslist=["linux"]) #linux does not support loading dependent files
+ @expectedFailureAll(oslist=["linux"],
+ triple=no_match(".*-android"))
+ #linux does not support loading dependent files, but android does
@expectedFailureNetBSD
def test_dependents_explicit_default_exe(self):
"""Test default behavior"""
@@ -52,7 +57,9 @@ class TargetDependentsTestCase(TestBase):
self.runCmd("target create -dtrue " + exe, CURRENT_EXECUTABLE_SET)
self.has_exactly_one_image(True)
- @expectedFailureAll(oslist=["linux"]) #linux does not support loading dependent files
+ @expectedFailureAll(oslist=["linux"],
+ triple=no_match(".*-android"))
+ #linux does not support loading dependent files, but android does
@expectedFailureNetBSD
def test_dependents_explicit_false_exe(self):
"""Test default behavior"""
@@ -66,6 +73,7 @@ class TargetDependentsTestCase(TestBase):
self.runCmd("target create -d " + exe, CURRENT_EXECUTABLE_SET)
self.has_exactly_one_image(True)
+ @expectedFailureAndroid # android will return mutiple images
def test_dependents_implicit_default_lib(self):
ctx = self.platformContext
dylibName = ctx.shlib_prefix + 'load_a.' + ctx.shlib_extension
@@ -87,7 +95,9 @@ class TargetDependentsTestCase(TestBase):
self.runCmd("target create -dtrue " + lib, CURRENT_EXECUTABLE_SET)
self.has_exactly_one_image(True)
- @expectedFailureAll(oslist=["linux"]) #linux does not support loading dependent files
+ @expectedFailureAll(oslist=["linux"],
+ triple=no_match(".*-android"))
+ #linux does not support loading dependent files, but android does
@expectedFailureNetBSD
def test_dependents_explicit_false_lib(self):
ctx = self.platformContext
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py b/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
index b4b6ebe..ba0cdd0 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
@@ -36,7 +36,8 @@ class WatchpointLLDBCommandTestCase(TestBase):
@expectedFailureAll(
oslist=["linux"],
archs=["aarch64"],
- bugnumber="llvm.org/pr27710")
+ triple=no_match(".*-android"),
+ bugnumber="llvm.org/pr27710") # work on android
@expectedFailureAll(
oslist=["windows"],
bugnumber="llvm.org/pr24446: WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows")
@@ -105,7 +106,8 @@ class WatchpointLLDBCommandTestCase(TestBase):
@expectedFailureAll(
oslist=["linux"],
archs=["aarch64"],
- bugnumber="llvm.org/pr27710")
+ triple=no_match(".*-android"),
+ bugnumber="llvm.org/pr27710") # work on android
@expectedFailureAll(
oslist=["windows"],
bugnumber="llvm.org/pr24446: WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows")
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py b/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py
index 431298a..b32bf08 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py
@@ -40,7 +40,8 @@ class WatchpointPythonCommandTestCase(TestBase):
@expectedFailureAll(
oslist=["linux"],
archs=["aarch64"],
- bugnumber="llvm.org/pr27710")
+ triple=no_match(".*-android"),
+ bugnumber="llvm.org/pr27710") # work on android
@expectedFailureNetBSD
def test_watchpoint_command(self):
"""Test 'watchpoint command'."""
@@ -111,7 +112,8 @@ class WatchpointPythonCommandTestCase(TestBase):
@expectedFailureAll(
oslist=["linux"],
archs=["aarch64"],
- bugnumber="llvm.org/pr27710")
+ triple=no_match(".*-android"),
+ bugnumber="llvm.org/pr27710") # work on android
@expectedFailureNetBSD
def test_continue_in_watchpoint_command(self):
"""Test continue in a watchpoint command."""
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py b/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py
index b4b489e..c11a4d1 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py
@@ -36,6 +36,7 @@ class WatchpointConditionCmdTestCase(TestBase):
@expectedFailureAll(
oslist=["linux"],
archs=["aarch64"],
+ triple=no_match(".*-android"),
bugnumber="llvm.org/pr27710")
@expectedFailureAll(
oslist=["windows"],
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py b/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py
index cedfad9..b82265a 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py
@@ -25,6 +25,7 @@ class TestWatchpointEvents (TestBase):
@expectedFailureAll(
oslist=["linux"],
archs=["aarch64"],
+ triple=no_match(".*-android"),
bugnumber="llvm.org/pr27710")
@expectedFailureAll(
oslist=["windows"],
diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/const_variables/TestConstVariables.py b/lldb/packages/Python/lldbsuite/test/lang/c/const_variables/TestConstVariables.py
index 8e5fd6c..87c2326 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/c/const_variables/TestConstVariables.py
+++ b/lldb/packages/Python/lldbsuite/test/lang/c/const_variables/TestConstVariables.py
@@ -31,6 +31,7 @@ class ConstVariableTestCase(TestBase):
archs=[
'arm',
'aarch64'],
+ triple=no_match(".*-android"),
bugnumber="llvm.org/pr27883")
@expectedFailureAll(
oslist=["windows"],
diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/global_variables/TestGlobalVariables.py b/lldb/packages/Python/lldbsuite/test/lang/c/global_variables/TestGlobalVariables.py
index 57cec91..61657e7 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/c/global_variables/TestGlobalVariables.py
+++ b/lldb/packages/Python/lldbsuite/test/lang/c/global_variables/TestGlobalVariables.py
@@ -22,7 +22,10 @@ class GlobalVariablesTestCase(TestBase):
self.shlib_names = ["a"]
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24764")
- @expectedFailureAll(oslist=["linux"], archs=["aarch64"], bugnumber="llvm.org/pr37301")
+ @expectedFailureAll(oslist=["linux"],
+ archs=["aarch64"],
+ triple=no_match(".*-android"),
+ bugnumber="llvm.org/pr37301")
def test_without_process(self):
"""Test that static initialized variables can be inspected without
process."""
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py b/lldb/packages/Python/lldbsuite/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py
index bb32869..68b8857 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py
@@ -36,6 +36,7 @@ class WatchpointConditionAPITestCase(TestBase):
@expectedFailureAll(
oslist=["linux"],
archs=["aarch64"],
+ triple=no_match(".*-android"),
bugnumber="llvm.org/pr27710")
@skipIfWindows # Watchpoints not supported on Windows, and this test hangs
def test_watchpoint_cond_api(self):
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestLldbGdbServer.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestLldbGdbServer.py
index a3bad68..c43ab1d 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestLldbGdbServer.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestLldbGdbServer.py
@@ -1279,7 +1279,6 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase, DwarfOpcod
@llgs_test
@skipUnlessPlatform(oslist=['linux'])
- @expectedFailureAndroid
@skipIf(archs=no_match(['arm', 'aarch64']))
def test_hardware_breakpoint_set_and_remove_work_llgs(self):
self.init_llgs_test()