Skip to content

[lldb] Skip failing tests on Linux #3298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions lldb/test/API/lang/swift/enum_objc/TestEnumObjC.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import lldbsuite.test.lldbinline as lldbinline
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(), decorators=[
skipIf(bugnumber="rdar://60396797", # should work but crashes.
setting=('symbols.use-swift-clangimporter', 'false')),
swiftTest])
lldbinline.MakeInlineTest(
__file__,
globals(),
decorators=[
skipIf(
bugnumber="rdar://60396797", # should work but crashes.
setting=('symbols.use-swift-clangimporter', 'false')),
expectedFailureAll(oslist=["linux"], bugnumber="rdar://83444822"),
swiftTest
])
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class TestExclusivitySuppression(TestBase):
# Test that we can evaluate w.s.i at Breakpoint 1 without triggering
# a failure due to exclusivity
@swiftTest
@expectedFailureAll(oslist=["linux"], bugnumber="rdar://83444943")
def test_basic_exclusivity_suppression(self):
"""Test that exclusively owned values can still be accessed"""

Expand All @@ -56,6 +57,7 @@ def test_basic_exclusivity_suppression(self):
# (5) Evaluating w.s.i again to check that finishing the nested expression
# did not prematurely re-enable exclusivity checks.
@swiftTest
@expectedFailureAll(oslist=["linux"], bugnumber="rdar://83444943")
def test_exclusivity_suppression_for_concurrent_expressions(self):
"""Test that exclusivity suppression works with concurrent expressions"""
self.build()
Expand Down Expand Up @@ -98,5 +100,3 @@ def check_expression(self, frame, expression, expected_result, use_summary=True)
report_str = "%s expected: %s got: %s" % (
expression, expected_result, answer)
self.assertTrue(answer == expected_result, report_str)


Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,14 @@ def cleanup():
self.expect("e value", substrs=["(SomeLibrary.TwoInts)", "= (first = 2, second = 3)"])
self.expect("e container", substrs=["(main.ContainsTwoInts)", "wrapped = (first = 2, second = 3)", "other = 10"])
self.expect("e TwoInts(4, 5)", substrs=["(SomeLibrary.TwoInts)", "= (first = 4, second = 5)"])

@skipIf(bugnumber="rdar://problem/54322424", # This test is unreliable.
setting=('symbols.use-swift-clangimporter', 'false'))
@swiftTest
@skipIfLinux # rdar://problem/67348391
def test_implementation_only_import_main_executable_no_library_module(self):
"""Test `@_implementationOnly import` in the main executable, after removing the library's swiftmodule

See the ReadMe.md in the parent directory for more information.
"""

Expand Down Expand Up @@ -105,7 +106,7 @@ def cleanup():
@expectedFailureAll(oslist=["windows"])
def test_implementation_only_import_main_executable_resilient(self):
"""Test `@_implementationOnly import` in the main executable with a resilient library

See the ReadMe.md in the parent directory for more information.
"""

Expand All @@ -124,12 +125,12 @@ def cleanup():
self.expect("e value", substrs=["(SomeLibrary.TwoInts)", "= (first = 2, second = 3)"])
self.expect("e container", substrs=["(main.ContainsTwoInts)", "wrapped = (first = 2, second = 3)", "other = 10"])
self.expect("e TwoInts(4, 5)", substrs=["(SomeLibrary.TwoInts)", "= (first = 4, second = 5)"])

@swiftTest
@expectedFailureOS(no_match(["macosx"])) # Requires Remote Mirrors support
def test_implementation_only_import_main_executable_resilient_no_library_module(self):
"""Test `@_implementationOnly import` in the main executable with a resilient library, after removing the library's swiftmodule

See the ReadMe.md in the parent directory for more information.
"""

Expand Down
10 changes: 8 additions & 2 deletions lldb/test/API/lang/swift/po/sys_types/TestSwiftPOSysTypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@
import lldbsuite.test.lldbinline as lldbinline
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(),
decorators=[swiftTest,skipIf(oslist=['windows'])])
lldbinline.MakeInlineTest(__file__,
globals(),
decorators=[
swiftTest,
skipIf(oslist=['windows']),
expectedFailureAll(oslist=["linux"],
bugnumber="rdar://83444822")
])