Skip to content

Enables tests passing after fix of parsing elf object files #1670

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
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def setUp(self):

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipUnlessDarwin
@skipIf(oslist=['windows'])
@swiftTest
def test_sanity(self):
self.build()
Expand All @@ -24,7 +24,7 @@ def test_sanity(self):

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipUnlessDarwin
@skipIf(oslist=['windows'])
@swiftTest
def test_extra_clang_flags(self):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_basic_completion(self):
# PExpect uses many timeouts internally and doesn't play well
# under ASAN on a loaded machine..
@skipIfAsan
@skipUnlessDarwin
@skipIf(oslist=['windows'])
def test_lldb_command_completion(self):

self.launch(extra_args=["--repl"], executable=None, dimensions=(100,500))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def run_tests(self, target, process):
# FIXME: this is formatted incorrectly.
self.expect("fr var t", substrs=["(T)"]) #, "world"])

@skipUnlessDarwin
@skipIf(oslist=['windows'])
@skipIf(debug_info=no_match(["dwarf"]))
@expectedFailureAll(archs=["arm64", "arm64e", 'arm64_32'], bugnumber="<rdar://problem/58096919>")
@expectedFailureAll(archs=["arm64", "arm64e", 'arm64_32'], bugnumber="<rdar://problem/58097436>")
Expand All @@ -47,7 +47,7 @@ def test_missing_module(self):
target, process, _, _ = lldbutil.run_to_name_breakpoint(self, 'main')
self.run_tests(target, process)

@skipUnlessDarwin
@skipIf(oslist=['windows'])
@skipIf(debug_info=no_match(["dwarf"]))
@expectedFailureAll(archs=["arm64", "arm64e", 'arm64_32'], bugnumber="<rdar://problem/58096919>")
@expectedFailureAll(archs=["arm64", "arm64e", 'arm64_32'], bugnumber="<rdar://problem/58097436>")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def build(self):

@skipIf(archs=['ppc64le'], bugnumber='SR-10214')
# This test needs a working Remote Mirrors implementation.
@skipIf(oslist=['linux', 'windows'])
@skipIf(oslist=['windows'])
# We delete the pch that would contains the debug info as part of the setup.
#@skipIf(debug_info=no_match(["dsym"]))
@swiftTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def build(self):
@skipIf(archs=['ppc64le'], bugnumber='SR-10214')
@swiftTest
# This test needs a working Remote Mirrors implementation.
@skipIf(oslist=['linux', 'windows'])
@skipIf(oslist=['windows'])
def test_dwarf_importer(self):
lldb.SBDebugger.MemoryPressureDetected()
self.runCmd("settings set symbols.use-swift-dwarfimporter true")
Expand Down Expand Up @@ -70,7 +70,7 @@ def test_dwarf_importer(self):
@skipIf(archs=['ppc64le'], bugnumber='SR-10214')
@swiftTest
# This test needs a working Remote Mirrors implementation.
@skipIf(oslist=['linux', 'windows'])
@skipIf(oslist=['windows'])
def test_dwarf_importer_exprs(self):
lldb.SBDebugger.MemoryPressureDetected()
self.runCmd("settings set symbols.use-swift-dwarfimporter true")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def setUp(self):
self.main_source_spec = lldb.SBFileSpec(self.main_source)

@swiftTest
@skipUnlessDarwin
@skipIf(oslist=['linux', 'windows'])
def test_swift_no_target(self):
"""Tests that we give a reasonable error if we try to run expressions with no target"""
result = lldb.SBCommandReturnObject()
Expand All @@ -41,7 +41,7 @@ def test_swift_no_target(self):
"Swift expression with no target should fail.")

@swiftTest
@skipUnlessDarwin
@skipIf(oslist=['windows'])
def test_swift_no_process(self):
"""Tests that we give a reasonable error if we try to run expressions with no process"""
self.build()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import lldbsuite.test.lldbinline as lldbinline
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(), decorators=[swiftTest, skipUnlessDarwin,
lldbinline.MakeInlineTest(__file__, globals(), decorators=[swiftTest, skipIf(oslist=['windows']),
skipIf(bugnumber="rdar://60396797", # should work but crashes.
setting=('symbols.use-swift-clangimporter', 'false'))
])
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

lldbinline.MakeInlineTest(__file__, globals(),
decorators=[
swiftTest,skipUnlessDarwin,
swiftTest,skipIf(oslist=['windows']),
skipIf(bugnumber="rdar://60396797", # should work but crashes.
setting=('symbols.use-swift-clangimporter', 'false'))
])
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(),
decorators=[swiftTest,skipUnlessDarwin])
decorators=[swiftTest,skipIf(oslist=['windows'])])
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(),
decorators=[swiftTest,skipUnlessDarwin,
expectedFailureAll(bugnumber="rdar://60396797",
decorators=[swiftTest,skipIf(oslist=['windows']),
expectedFailureAll(oslist=['macosx'],bugnumber="rdar://60396797",
setting=('symbols.use-swift-clangimporter', 'false'))
])
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(),
decorators=[swiftTest,skipUnlessDarwin])
decorators=[swiftTest,skipIf(oslist=['windows'])])
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(),
decorators=[swiftTest,skipUnlessDarwin])
decorators=[swiftTest,skipIf(oslist=['windows'])])
2 changes: 1 addition & 1 deletion lldb/test/API/lang/swift/missing_sdk/TestMissingSDK.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def setUp(self):
# Call super's setUp().
TestBase.setUp(self)

@skipIf(oslist=['linux', 'windows'])
@skipIf(oslist=['windows'])
@skipIfDarwinEmbedded # swift crash inspecting swift stdlib with little other swift loaded <rdar://problem/55079456>
def testMissingSDK(self):
self.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(),
decorators=[swiftTest,skipUnlessDarwin])
decorators=[swiftTest,skipIf(oslist=['windows'])])
2 changes: 1 addition & 1 deletion lldb/test/API/lang/swift/optional_url/TestOptionalURL.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import lldbsuite.test.lldbinline as lldbinline
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(), decorators=[swiftTest, skipUnlessDarwin])
lldbinline.MakeInlineTest(__file__, globals(), decorators=[swiftTest, skipIf(oslist=['windows'])])
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TestSwiftPathWithColon(TestBase):

mydir = TestBase.compute_mydir(__file__)

@skipUnlessDarwin
@skipIf(oslist=['windows'])
@skipIfiOSSimulator
@swiftTest
def test_path_with_colon(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(),
decorators=[swiftTest,skipUnlessDarwin])
decorators=[swiftTest,skipIf(oslist=['windows'])])
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(),
decorators=[swiftTest,skipUnlessDarwin])
decorators=[swiftTest,skipIf(oslist=['windows'])])
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
from lldbsuite.test.decorators import *

lldbinline.MakeInlineTest(__file__, globals(),
decorators=[swiftTest,skipUnlessDarwin])
decorators=[swiftTest,skipIf(oslist=['windows'])])
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setUp(self):
TestBase.setUp(self)

@swiftTest
@skipIfLinux
@skipIf(oslist=['windows'])
def test_swift_struct_init(self):
"""Test that we display self correctly for an inline-initialized struct"""
self.build()
Expand Down