[Lldb-commits] [lldb] 6d18e53 - Mark some tests as xfail on AArch64 Linux
Diana Picus via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 3 01:58:37 PST 2019
Author: Diana Picus
Date: 2019-12-03T10:57:42+01:00
New Revision: 6d18e5366c9a0bffe45b179a830483b3f2ec9fa9
URL: https://github.com/llvm/llvm-project/commit/6d18e5366c9a0bffe45b179a830483b3f2ec9fa9
DIFF: https://github.com/llvm/llvm-project/commit/6d18e5366c9a0bffe45b179a830483b3f2ec9fa9.diff
LOG: Mark some tests as xfail on AArch64 Linux
I have either opened new bug reports for these tests, or added links to
existing bugs.
This should help make the lldb-aarch64-ubuntu buildbot green (there will
still be some unexpected passes that someone should look into, but those
can be handled later).
Added:
Modified:
lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/TestStaticInitializers.py
lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py
lldb/packages/Python/lldbsuite/test/functionalities/inline-stepping/TestInlineStepping.py
lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
lldb/packages/Python/lldbsuite/test/functionalities/return-value/TestReturnValue.py
lldb/packages/Python/lldbsuite/test/functionalities/show_location/TestShowLocationDwarf5.py
lldb/packages/Python/lldbsuite/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py
lldb/packages/Python/lldbsuite/test/functionalities/tail_call_frames/thread_step_out_or_return/TestSteppingOutWithArtificialFrames.py
lldb/packages/Python/lldbsuite/test/lang/cpp/trivial_abi/TestTrivialABI.py
lldb/packages/Python/lldbsuite/test/linux/builtin_trap/TestBuiltinTrap.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/TestStaticInitializers.py b/lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/TestStaticInitializers.py
index e350e6ef930f..61107077f9cf 100644
--- a/lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/TestStaticInitializers.py
+++ b/lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/TestStaticInitializers.py
@@ -7,6 +7,8 @@ class StaticInitializers(TestBase):
mydir = TestBase.compute_mydir(__file__)
+ @expectedFailureAll(archs="aarch64", oslist="linux",
+ bugnumber="https://bugs.llvm.org/show_bug.cgi?id=44053")
def test(self):
""" Test a static initializer. """
self.build()
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py
index 020974ee469a..4a571787f011 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py
@@ -26,6 +26,8 @@ def test_breakpoint(self):
self.assertTrue(breakpoint.IsHardware())
@skipIfWindows
+ @expectedFailureAll(archs="aarch64", oslist="linux",
+ bugnumber="https://bugs.llvm.org/show_bug.cgi?id=44055")
def test_step_range(self):
"""Test stepping when hardware breakpoints are required."""
self.build()
@@ -47,6 +49,8 @@ def test_step_range(self):
in error.GetCString())
@skipIfWindows
+ @expectedFailureAll(archs="aarch64", oslist="linux",
+ bugnumber="https://bugs.llvm.org/show_bug.cgi?id=44055")
def test_step_out(self):
"""Test stepping out when hardware breakpoints are required."""
self.build()
@@ -67,6 +71,8 @@ def test_step_out(self):
in error.GetCString())
@skipIfWindows
+ @expectedFailureAll(archs="aarch64", oslist="linux",
+ bugnumber="https://bugs.llvm.org/show_bug.cgi?id=44055")
def test_step_over(self):
"""Test stepping over when hardware breakpoints are required."""
self.build()
@@ -85,6 +91,8 @@ def test_step_over(self):
])
@skipIfWindows
+ @expectedFailureAll(archs="aarch64", oslist="linux",
+ bugnumber="https://bugs.llvm.org/show_bug.cgi?id=44055")
def test_step_until(self):
"""Test stepping until when hardware breakpoints are required."""
self.build()
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/inline-stepping/TestInlineStepping.py b/lldb/packages/Python/lldbsuite/test/functionalities/inline-stepping/TestInlineStepping.py
index a52cd4dd6865..ce4572361d93 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/inline-stepping/TestInlineStepping.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/inline-stepping/TestInlineStepping.py
@@ -18,6 +18,8 @@ class TestInlineStepping(TestBase):
compiler="icc",
bugnumber="# Not really a bug. ICC combines two inlined functions.")
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr32343")
+ @expectedFailureAll(archs=["aarch64"], oslist=["linux"],
+ bugnumber="llvm.org/pr44057")
def test_with_python_api(self):
"""Test stepping over and into inlined functions."""
self.build()
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 02e9198e38df..ae0934c74616 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
@@ -363,12 +363,16 @@ def run_load_unload(self):
@skipIfFreeBSD # llvm.org/pr14424 - missing FreeBSD Makefiles/testcase support
@skipIfWindows # Windows doesn't have dlopen and friends, dynamic libraries work
diff erently
+ @expectedFailureAll(archs="aarch64", oslist="linux",
+ bugnumber="https://bugs.llvm.org/show_bug.cgi?id=27806")
def test_step_over_load(self):
self.setSvr4Support(False)
self.run_step_over_load()
@skipIfFreeBSD # llvm.org/pr14424 - missing FreeBSD Makefiles/testcase support
@skipIfWindows # Windows doesn't have dlopen and friends, dynamic libraries work
diff erently
+ @expectedFailureAll(archs="aarch64", oslist="linux",
+ bugnumber="https://bugs.llvm.org/show_bug.cgi?id=27806")
def test_step_over_load_with_svr4(self):
self.setSvr4Support(True)
self.run_step_over_load()
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/return-value/TestReturnValue.py b/lldb/packages/Python/lldbsuite/test/functionalities/return-value/TestReturnValue.py
index cb5dad50df8f..b326c96325fa 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/return-value/TestReturnValue.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/return-value/TestReturnValue.py
@@ -19,6 +19,9 @@ def affected_by_pr33042(self):
return ("clang" in self.getCompiler() and self.getArchitecture() ==
"aarch64" and self.getPlatform() == "linux")
+ def affected_by_pr44132(self):
+ return (self.getArchitecture() == "aarch64" and self.getPlatform() == "linux")
+
# ABIMacOSX_arm can't fetch simple values inside a structure
def affected_by_radar_34562999(self):
return (self.getArchitecture() == 'armv7' or self.getArchitecture() == 'armv7k') and self.platformIsDarwin()
@@ -123,8 +126,8 @@ def test_with_python(self):
#self.assertTrue(in_float == return_float)
- if not self.affected_by_radar_34562999():
- self.return_and_test_struct_value("return_one_int")
+ if not self.affected_by_radar_34562999() and not self.affected_by_pr44132():
+ self.return_and_test_struct_value("return_one_int")
self.return_and_test_struct_value("return_two_int")
self.return_and_test_struct_value("return_three_int")
self.return_and_test_struct_value("return_four_int")
@@ -182,10 +185,12 @@ def test_vector_values(self):
self.return_and_test_struct_value("return_vector_size_float32_8")
self.return_and_test_struct_value("return_vector_size_float32_16")
- self.return_and_test_struct_value("return_vector_size_float32_32")
+ if not self.affected_by_pr44132():
+ self.return_and_test_struct_value("return_vector_size_float32_32")
self.return_and_test_struct_value("return_ext_vector_size_float32_2")
self.return_and_test_struct_value("return_ext_vector_size_float32_4")
- self.return_and_test_struct_value("return_ext_vector_size_float32_8")
+ if not self.affected_by_pr44132():
+ self.return_and_test_struct_value("return_ext_vector_size_float32_8")
# limit the nested struct and class tests to only x86_64
@skipIf(archs=no_match(['x86_64']))
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/show_location/TestShowLocationDwarf5.py b/lldb/packages/Python/lldbsuite/test/functionalities/show_location/TestShowLocationDwarf5.py
index a56282efd77d..2ceeed6a8f15 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/show_location/TestShowLocationDwarf5.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/show_location/TestShowLocationDwarf5.py
@@ -9,6 +9,8 @@ class TestTargetSourceMap(TestBase):
mydir = TestBase.compute_mydir(__file__)
+ @skipIf(archs="aarch64", oslist="linux", debug_info="dwo",
+ bugnumber="https://bugs.llvm.org/show_bug.cgi?id=44180")
def test_source_map(self):
# Set the target soure map to map "./" to the current test directory.
yaml_path = os.path.join(self.getSourceDir(), "a.yaml")
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py b/lldb/packages/Python/lldbsuite/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py
index c4fae7da0135..ceee901fe306 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py
@@ -50,6 +50,8 @@ def test_step_over_with_python(self):
archs=["i386"],
bugnumber="llvm.org/pr28549")
@expectedFailureAll(oslist=["ios", "tvos", "bridgeos"], bugnumber="<rdar://problem/34026777>") # lldb doesn't step past last source line in function on arm64
+ @expectedFailureAll(archs=["aarch64"], oslist=["linux"],
+ bugnumber="llvm.org/pr44057")
def test_step_in_with_python(self):
"""Test stepping in using avoid-no-debug with dwarf."""
self.build()
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/tail_call_frames/thread_step_out_or_return/TestSteppingOutWithArtificialFrames.py b/lldb/packages/Python/lldbsuite/test/functionalities/tail_call_frames/thread_step_out_or_return/TestSteppingOutWithArtificialFrames.py
index 2b432e56a740..687fb0e7a5e8 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/tail_call_frames/thread_step_out_or_return/TestSteppingOutWithArtificialFrames.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/tail_call_frames/thread_step_out_or_return/TestSteppingOutWithArtificialFrames.py
@@ -71,6 +71,8 @@ def test_stepping_out_past_artificial_frame(self):
self.assertFalse(frame2.IsArtificial())
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr26265")
+ @expectedFailureAll(archs=["aarch64"], oslist=["linux"],
+ bugnumber="llvm.org/pr44160")
def test_return_past_artificial_frame(self):
self.build()
thread = self.prepare_thread()
diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/trivial_abi/TestTrivialABI.py b/lldb/packages/Python/lldbsuite/test/lang/cpp/trivial_abi/TestTrivialABI.py
index 9a203ef3a308..78f7fa3afd73 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/cpp/trivial_abi/TestTrivialABI.py
+++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/trivial_abi/TestTrivialABI.py
@@ -18,6 +18,8 @@ class TestTrivialABI(TestBase):
@skipUnlessSupportedTypeAttribute("trivial_abi")
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr37995")
+ @expectedFailureAll(archs=["aarch64"], oslist=["linux"],
+ bugnumber="llvm.org/pr44161")
def test_call_trivial(self):
"""Test that we can print a variable & call a function with a trivial ABI class."""
self.build()
@@ -27,6 +29,8 @@ def test_call_trivial(self):
@skipUnlessSupportedTypeAttribute("trivial_abi")
# fixed for SysV-x86_64 ABI, but not Windows-x86_64
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr36870")
+ @expectedFailureAll(archs=["aarch64"], oslist=["linux"],
+ bugnumber="llvm.org/pr44161")
def test_call_nontrivial(self):
"""Test that we can print a variable & call a function on the same class w/o the trivial ABI marker."""
self.build()
diff --git a/lldb/packages/Python/lldbsuite/test/linux/builtin_trap/TestBuiltinTrap.py b/lldb/packages/Python/lldbsuite/test/linux/builtin_trap/TestBuiltinTrap.py
index 951f59e611e2..28debcee9da1 100644
--- a/lldb/packages/Python/lldbsuite/test/linux/builtin_trap/TestBuiltinTrap.py
+++ b/lldb/packages/Python/lldbsuite/test/linux/builtin_trap/TestBuiltinTrap.py
@@ -24,7 +24,7 @@ def setUp(self):
# gcc generates incorrect linetable
@expectedFailureAll(archs="arm", compiler="gcc", triple=".*-android")
- @expectedFailureAll(oslist=['linux'], archs=['arm'])
+ @expectedFailureAll(oslist=['linux'], archs=['arm', 'aarch64'])
@skipIfWindows
def test_with_run_command(self):
"""Test that LLDB handles a function with __builtin_trap correctly."""
More information about the lldb-commits
mailing list