Skip to content

Commit 16ffef2

Browse files
committed
Enables tests passing after fix of parsing elf object files
1 parent 454d680 commit 16ffef2

File tree

20 files changed

+25
-25
lines changed

20 files changed

+25
-25
lines changed

lldb/test/API/lang/swift/clangimporter/extra_clang_flags/TestSwiftExtraClangFlags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def setUp(self):
1313

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

2525
# Don't run ClangImporter tests if Clangimporter is disabled.
2626
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
27-
@skipUnlessDarwin
27+
@skipIf(oslist=['windows'])
2828
@swiftTest
2929
def test_extra_clang_flags(self):
3030
"""

lldb/test/API/lang/swift/completion/TestSwiftREPLCompletion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_basic_completion(self):
4343
# PExpect uses many timeouts internally and doesn't play well
4444
# under ASAN on a loaded machine..
4545
@skipIfAsan
46-
@skipUnlessDarwin
46+
@skipIf(oslist=['windows'])
4747
def test_lldb_command_completion(self):
4848

4949
self.launch(extra_args=["--repl"], executable=None, dimensions=(100,500))

lldb/test/API/lang/swift/deserialization_failure/TestSwiftDeserializationFailure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def run_tests(self, target, process):
3737
# FIXME: this is formatted incorrectly.
3838
self.expect("fr var t", substrs=["(T)"]) #, "world"])
3939

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

50-
@skipUnlessDarwin
50+
@skipIf(oslist=['windows'])
5151
@skipIf(debug_info=no_match(["dwarf"]))
5252
@expectedFailureAll(archs=["arm64", "arm64e", 'arm64_32'], bugnumber="<rdar://problem/58096919>")
5353
@expectedFailureAll(archs=["arm64", "arm64e", 'arm64_32'], bugnumber="<rdar://problem/58097436>")

lldb/test/API/lang/swift/dwarfimporter/BridgingPCH/TestSwiftDWARFImporterBridgingPCH.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def build(self):
3838

3939
@skipIf(archs=['ppc64le'], bugnumber='SR-10214')
4040
# This test needs a working Remote Mirrors implementation.
41-
@skipIf(oslist=['linux', 'windows'])
41+
@skipIf(oslist=['windows'])
4242
# We delete the pch that would contains the debug info as part of the setup.
4343
#@skipIf(debug_info=no_match(["dsym"]))
4444
@swiftTest

lldb/test/API/lang/swift/dwarfimporter/C/TestSwiftDWARFImporterC.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def build(self):
3838
@skipIf(archs=['ppc64le'], bugnumber='SR-10214')
3939
@swiftTest
4040
# This test needs a working Remote Mirrors implementation.
41-
@skipIf(oslist=['linux', 'windows'])
41+
@skipIf(oslist=['windows'])
4242
def test_dwarf_importer(self):
4343
lldb.SBDebugger.MemoryPressureDetected()
4444
self.runCmd("settings set symbols.use-swift-dwarfimporter true")
@@ -70,7 +70,7 @@ def test_dwarf_importer(self):
7070
@skipIf(archs=['ppc64le'], bugnumber='SR-10214')
7171
@swiftTest
7272
# This test needs a working Remote Mirrors implementation.
73-
@skipIf(oslist=['linux', 'windows'])
73+
@skipIf(oslist=['windows'])
7474
def test_dwarf_importer_exprs(self):
7575
lldb.SBDebugger.MemoryPressureDetected()
7676
self.runCmd("settings set symbols.use-swift-dwarfimporter true")

lldb/test/API/lang/swift/expression/no_calculator/TestSwiftNoProcess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setUp(self):
3030
self.main_source_spec = lldb.SBFileSpec(self.main_source)
3131

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

4343
@swiftTest
44-
@skipUnlessDarwin
44+
@skipIf(oslist=['windows'])
4545
def test_swift_no_process(self):
4646
"""Tests that we give a reasonable error if we try to run expressions with no process"""
4747
self.build()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import lldbsuite.test.lldbinline as lldbinline
22
from lldbsuite.test.decorators import *
33

4-
lldbinline.MakeInlineTest(__file__, globals(), decorators=[swiftTest, skipUnlessDarwin,
4+
lldbinline.MakeInlineTest(__file__, globals(), decorators=[swiftTest, skipIf(oslist=['windows']),
55
skipIf(bugnumber="rdar://60396797", # should work but crashes.
66
setting=('symbols.use-swift-clangimporter', 'false'))
77
])

lldb/test/API/lang/swift/foundation_value_types/data/TestSwiftFoundationTypeData.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
lldbinline.MakeInlineTest(__file__, globals(),
1616
decorators=[
17-
swiftTest,skipUnlessDarwin,
17+
swiftTest,skipIf(oslist=['windows']),
1818
skipIf(bugnumber="rdar://60396797", # should work but crashes.
1919
setting=('symbols.use-swift-clangimporter', 'false'))
2020
])

lldb/test/API/lang/swift/foundation_value_types/date/TestSwiftFoundationTypeDate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
from lldbsuite.test.decorators import *
1414

1515
lldbinline.MakeInlineTest(__file__, globals(),
16-
decorators=[swiftTest,skipUnlessDarwin])
16+
decorators=[swiftTest,skipIf(oslist=['windows'])])

lldb/test/API/lang/swift/foundation_value_types/decimal/TestSwiftFoundationTypeDecimal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from lldbsuite.test.decorators import *
33

44
lldbinline.MakeInlineTest(__file__, globals(),
5-
decorators=[swiftTest,skipUnlessDarwin,
6-
expectedFailureAll(bugnumber="rdar://60396797",
5+
decorators=[swiftTest,skipIf(oslist=['windows']),
6+
expectedFailureAll(oslist=['macosx'],bugnumber="rdar://60396797",
77
setting=('symbols.use-swift-clangimporter', 'false'))
88
])

lldb/test/API/lang/swift/foundation_value_types/indexpath/TestSwiftFoundationTypeIndexPath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
from lldbsuite.test.decorators import *
1414

1515
lldbinline.MakeInlineTest(__file__, globals(),
16-
decorators=[swiftTest,skipUnlessDarwin])
16+
decorators=[swiftTest,skipIf(oslist=['windows'])])

lldb/test/API/lang/swift/foundation_value_types/uuid/TestSwiftFoundationTypeUUID.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
from lldbsuite.test.decorators import *
1414

1515
lldbinline.MakeInlineTest(__file__, globals(),
16-
decorators=[swiftTest,skipUnlessDarwin])
16+
decorators=[swiftTest,skipIf(oslist=['windows'])])

lldb/test/API/lang/swift/missing_sdk/TestMissingSDK.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def setUp(self):
1919
# Call super's setUp().
2020
TestBase.setUp(self)
2121

22-
@skipIf(oslist=['linux', 'windows'])
22+
@skipIf(oslist=['windows'])
2323
@skipIfDarwinEmbedded # swift crash inspecting swift stdlib with little other swift loaded <rdar://problem/55079456>
2424
def testMissingSDK(self):
2525
self.build()

lldb/test/API/lang/swift/nonmodular-include/TestSwiftNonmodularInclude.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
from lldbsuite.test.decorators import *
1414

1515
lldbinline.MakeInlineTest(__file__, globals(),
16-
decorators=[swiftTest,skipUnlessDarwin])
16+
decorators=[swiftTest,skipIf(oslist=['windows'])])
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import lldbsuite.test.lldbinline as lldbinline
22
from lldbsuite.test.decorators import *
33

4-
lldbinline.MakeInlineTest(__file__, globals(), decorators=[swiftTest, skipUnlessDarwin])
4+
lldbinline.MakeInlineTest(__file__, globals(), decorators=[swiftTest, skipIf(oslist=['windows'])])

lldb/test/API/lang/swift/path_with_colons/TestSwiftPathWithColons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class TestSwiftPathWithColon(TestBase):
2828

2929
mydir = TestBase.compute_mydir(__file__)
3030

31-
@skipUnlessDarwin
31+
@skipIf(oslist=['windows'])
3232
@skipIfiOSSimulator
3333
@swiftTest
3434
def test_path_with_colon(self):

lldb/test/API/lang/swift/po/nested_nsdict/TestSwiftPONestedNSDictionary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
from lldbsuite.test.decorators import *
1414

1515
lldbinline.MakeInlineTest(__file__, globals(),
16-
decorators=[swiftTest,skipUnlessDarwin])
16+
decorators=[swiftTest,skipIf(oslist=['windows'])])

lldb/test/API/lang/swift/po/sys_types/TestSwiftPOSysTypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
from lldbsuite.test.decorators import *
1414

1515
lldbinline.MakeInlineTest(__file__, globals(),
16-
decorators=[swiftTest,skipUnlessDarwin])
16+
decorators=[swiftTest,skipIf(oslist=['windows'])])

lldb/test/API/lang/swift/po/uninitialized/TestSwiftPOUninitialized.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
from lldbsuite.test.decorators import *
1414

1515
lldbinline.MakeInlineTest(__file__, globals(),
16-
decorators=[swiftTest,skipUnlessDarwin])
16+
decorators=[swiftTest,skipIf(oslist=['windows'])])

lldb/test/API/lang/swift/struct_init_display/TestSwiftStructInit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def setUp(self):
2828
TestBase.setUp(self)
2929

3030
@swiftTest
31-
@skipIfLinux
31+
@skipIf(oslist=['windows'])
3232
def test_swift_struct_init(self):
3333
"""Test that we display self correctly for an inline-initialized struct"""
3434
self.build()

0 commit comments

Comments
 (0)