summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
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 /lldb/packages/Python/lldbsuite/test
parent511f7f5785e58a75fd82675336fa7fc90ba45c76 (diff)
downloadbcm5719-llvm-45a3fd206fb06f77a08968c99a8172cbf2ccdd0f.tar.gz
bcm5719-llvm-45a3fd206fb06f77a08968c99a8172cbf2ccdd0f.zip
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-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 99b54329a0e..bc3b5e011e1 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 8364f91c74a..3c84ef0c1a0 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 ec3f32114ba..b9caa66c000 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 59412cbf85f..cc633dcc14b 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 71bfff1d05d..3e7c67e6374 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 a3831f10c75..2d96433b7d4 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 b4b6ebe9bfc..ba0cdd09d59 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 431298a9f99..b32bf08c8d5 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 b4b489e8948..c11a4d1cc79 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 cedfad9b566..b82265a890f 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 8e5fd6ccf0c..87c2326b482 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 57cec918ba0..61657e751fd 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 bb32869543c..68b8857e87c 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 a3bad6873f1..c43ab1dbd69 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()
OpenPOWER on IntegriCloud