Skip to content

[lldb][test] Remove unnecessary mydir assignments (NFC) #7989

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 @@ -21,9 +21,6 @@


class TestSwiftErrorBreakpoint(TestBase):

mydir = TestBase.compute_mydir(__file__)

@decorators.skipIfLinux # <rdar://problem/30909618>
@swiftTest
def test_swift_error_no_typename(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@


class TestSwiftTypeAliasFormatters(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
def test_swift_type_alias_formatters(self):
"""Test that Swift typealiases get formatted properly"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@


class MTCSwiftPropertyTestCase(TestBase):

mydir = TestBase.compute_mydir(__file__)

@expectedFailureAll(bugnumber="rdar://60396797",
setting=('symbols.use-swift-clangimporter', 'false'))
@skipUnlessDarwin
Expand Down
3 changes: 0 additions & 3 deletions lldb/test/API/functionalities/mtc/swift/TestMTCSwift.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@


class MTCSwiftTestCase(TestBase):

mydir = TestBase.compute_mydir(__file__)

@expectedFailureAll(bugnumber="rdar://60396797",
setting=('symbols.use-swift-clangimporter', 'false'))
@skipUnlessDarwin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
from lldbsuite.test.decorators import *

class TestSwiftProgressReporting(TestBase):

mydir = TestBase.compute_mydir(__file__)

def setUp(self):
TestBase.setUp(self)
self.broadcaster = self.dbg.GetBroadcaster()
Expand Down
3 changes: 0 additions & 3 deletions lldb/test/API/lang/swift/any_object/TestSwiftAnyObjectType.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@


class TestSwiftAnyObjectType(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
def test_any_object_type(self):
"""Test the AnyObject type"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@


class TestSwiftArchetypeResolution(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
def test_swift_archetype_resolution(self):
"""Test that archetype-typed objects get resolved to their proper location in memory"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@


class TestSwiftArchetypeResolution(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
def test_swift_associated_type_resolution(self):
"""Test that archetype-typed objects get resolved to their proper location in memory"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ def getOlderVersion(major, minor):

class TestAvailability(TestBase):

mydir = TestBase.compute_mydir(__file__)

NO_DEBUG_INFO_TESTCASE = True

def setUp(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@


class SwiftPartialBreakTest(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
def test_swift_partial_break(self):
"""Tests that we can break on a partial name of a Swift function"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@


class TestSwiftBridgedMetatype(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
@skipUnlessFoundation
def test_swift_bridged_metatype(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@


class TestSwiftBacktracePrinting(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
def test_swift_backtrace_printing(self):
"""Test printing Swift backtrace"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

class TestSwiftWerror(TestBase):

mydir = TestBase.compute_mydir(__file__)
NO_DEBUG_INFO_TESTCASE = True

# Don't run ClangImporter tests if Clangimporter is disabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

class TestSwiftBridgingHeaderHeadermap(TestBase):

mydir = TestBase.compute_mydir(__file__)
NO_DEBUG_INFO_TESTCASE = True

# Don't run ClangImporter tests if Clangimporter is disabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

class TestSwiftExtraClangFlags(TestBase):

mydir = TestBase.compute_mydir(__file__)

NO_DEBUG_INFO_TESTCASE = True

def setUp(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
import unittest2

class TestSwiftDedupMacros(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipIf(setting=('symbols.swift-precise-compiler-invocation', 'true'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
import shutil

class TestSwiftDynamicTypeResolutionImportConflict(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipUnlessDarwin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import unittest2

class TestSwiftExprImport(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipIf(setting=('symbols.swift-precise-compiler-invocation', 'true'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import unittest2

class TestSwiftExtraClangFlags(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipIf(oslist=['windows'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
import shutil

class TestSwiftHeadermapConflict(TestBase):

mydir = TestBase.compute_mydir(__file__)

@skipIf(bugnumber="rdar://60396797",
setting=('symbols.use-swift-clangimporter', 'false'))
@skipIf(setting=('symbols.swift-precise-compiler-invocation', 'true'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
import shutil

class TestSwiftIncludeConflict(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipIf(setting=('symbols.swift-precise-compiler-invocation', 'true'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
import shutil

class TestSwiftMacroConflict(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipIf(setting=('symbols.swift-precise-compiler-invocation', 'true'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import os

class TestSwiftMissingVFSOverlay(TestBase):
mydir = TestBase.compute_mydir(__file__)

NO_DEBUG_INFO_TESTCASE = True

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

class TestSwiftMissingVFSOverlay(TestBase):

mydir = TestBase.compute_mydir(__file__)

NO_DEBUG_INFO_TESTCASE = True

# Don't run ClangImporter tests if Clangimporter is disabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
import shutil

class TestSwiftObjCMainConflictingDylibs(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipUnlessDarwin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
import shutil

class TestSwiftObjCMainConflictingDylibsBridgingHeader(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipUnlessDarwin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
class TestSwiftObjCMainConflictingDylibsFailingImport(TestBase):

NO_DEBUG_INFO_TESTCASE = True
mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
import unittest2

class TestSwiftRewriteClangPaths(TestBase):

mydir = TestBase.compute_mydir(__file__)

@skipUnlessDarwin
@skipIfDarwinEmbedded
@swiftTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
import unittest2

class TestSwiftRemoteASTImport(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipUnlessDarwin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
import shutil

class TestSwiftRewriteClangPaths(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipIf(setting=('symbols.swift-precise-compiler-invocation', 'true'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
import unittest2

class TestSwiftStaticArchiveTwoSwiftmodules(TestBase):

mydir = TestBase.compute_mydir(__file__)

# Don't run ClangImporter tests if Clangimporter is disabled.
@skipIf(setting=('symbols.use-swift-clangimporter', 'false'))
@skipUnlessDarwin
Expand Down
3 changes: 0 additions & 3 deletions lldb/test/API/lang/swift/closures/TestSwiftClosures.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@


class TestPassedClosures(TestBase):

mydir = TestBase.compute_mydir(__file__)

NO_DEBUG_INFO_TESTCASE = True

@expectedFailureAll(bugnumber="rdar://31816998")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
from lldbsuite.test.lldbpexpect import PExpectTest

class SwiftCompletionTest(PExpectTest):

mydir = TestBase.compute_mydir(__file__)

# PExpect uses many timeouts internally and doesn't play well
# under ASAN on a loaded machine..
@skipIfAsan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@


class TestSwiftConditionalBreakpoint(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
def test_swift_conditional_breakpoint(self):
"""Tests that we can set a conditional breakpoint in Swift code"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
import unittest2

class TestSwiftCrossModuleExtension(TestBase):

mydir = TestBase.compute_mydir(__file__)

@skipUnlessDarwin
@swiftTest
def test_cross_module_extension(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@


class TestSwiftDebugPrefixMap(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
def test_debug_prefix_map(self):
self.do_test()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@


class TestSwiftDeploymentTarget(TestBase):

mydir = TestBase.compute_mydir(__file__)
NO_DEBUG_INFO_TESTCASE = True

@skipUnlessDarwin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@


class TestSwiftDeserializationFailure(TestBase):

mydir = TestBase.compute_mydir(__file__)

def prepare(self):
import shutil
copied_source = self.getBuildArtifact("main.swift")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ def execute_command(command):


class TestSwiftDifferentClangFlags(TestBase):

mydir = TestBase.compute_mydir(__file__)

@skipUnlessDarwin
@swiftTest
@skipIf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@


class SwiftDynamicValueTest(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
def test_dynamic_value(self):
"""Tests that dynamic values work correctly for Swift"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
from lldbsuite.test.decorators import *

class TestClassConstrainedProtocol(TestBase):

mydir = TestBase.compute_mydir(__file__)

@swiftTest
def test_extension_weak_self(self):
"""Test that we can reconstruct weak self captured in a class constrained protocol."""
Expand Down
Loading