From 1fe82f3ed479122950003759b0c3d99b9c283458 Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan Date: Thu, 4 Dec 2025 11:33:44 +0000 Subject: [PATCH] [lldb] Delete TestSwiftOtherArchDylib This test has some requirements that cannot be fulfilled by CI. --- .../API/lang/swift/other_arch_dylib/Makefile | 21 ----------- .../swift/other_arch_dylib/OtherArch.swift | 2 - .../TestSwiftOtherArchDylib.py | 37 ------------------- .../lang/swift/other_arch_dylib/main.swift | 3 -- 4 files changed, 63 deletions(-) delete mode 100644 lldb/test/API/lang/swift/other_arch_dylib/Makefile delete mode 100644 lldb/test/API/lang/swift/other_arch_dylib/OtherArch.swift delete mode 100644 lldb/test/API/lang/swift/other_arch_dylib/TestSwiftOtherArchDylib.py delete mode 100644 lldb/test/API/lang/swift/other_arch_dylib/main.swift diff --git a/lldb/test/API/lang/swift/other_arch_dylib/Makefile b/lldb/test/API/lang/swift/other_arch_dylib/Makefile deleted file mode 100644 index b8e22dd3ac61f..0000000000000 --- a/lldb/test/API/lang/swift/other_arch_dylib/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -SWIFT_SOURCES := main.swift -SWIFTFLAGS_EXTRAS = -F$(BUILDDIR) -Xlinker -rpath -Xlinker $(BUILDDIR) - -all: OtherArch.framework/Versions/A/OtherArch $(EXE) - -include Makefile.rules - -OtherArch.framework/Versions/A/OtherArch: $(SRCDIR)/OtherArch.swift - touch OtherArch.h - "$(MAKE)" -f $(MAKEFILE_RULES) \ - MAKE_DSYM=YES \ - DYLIB_ONLY=YES \ - DYLIB_SWIFT_SOURCES=OtherArch.swift \ - MODULENAME=OtherArch \ - FRAMEWORK=OtherArch \ - FRAMEWORK_MODULES=OtherArch.swiftinterface \ - FRAMEWORK_HEADERS=OtherArch.h \ - SWIFTFLAGS_EXTRAS="-target arm64e-apple-macos15" \ - SDKROOT=$(shell xcrun --sdk macosx.internal --show-sdk-path) - rm -f $(BUILDDIR)/OtherArch.swiftmodule $(BUILDDIR)/OtherArch.swiftinterface - rm -f OtherArch.o OtherArch.h OtherArch.partial.swiftmodule diff --git a/lldb/test/API/lang/swift/other_arch_dylib/OtherArch.swift b/lldb/test/API/lang/swift/other_arch_dylib/OtherArch.swift deleted file mode 100644 index d71627f5694bf..0000000000000 --- a/lldb/test/API/lang/swift/other_arch_dylib/OtherArch.swift +++ /dev/null @@ -1,2 +0,0 @@ -public func foo() { // break here -} diff --git a/lldb/test/API/lang/swift/other_arch_dylib/TestSwiftOtherArchDylib.py b/lldb/test/API/lang/swift/other_arch_dylib/TestSwiftOtherArchDylib.py deleted file mode 100644 index c80e34554a64f..0000000000000 --- a/lldb/test/API/lang/swift/other_arch_dylib/TestSwiftOtherArchDylib.py +++ /dev/null @@ -1,37 +0,0 @@ -import lldb -from lldbsuite.test.lldbtest import * -from lldbsuite.test.decorators import * -import lldbsuite.test.lldbutil as lldbutil -import os - - -class TestSwiftOtherArchDylib(TestBase): - - NO_DEBUG_INFO_TESTCASE = True - - @swiftTest - @skipUnlessDarwin - @skipIfDarwinEmbedded - @skipIf(archs=no_match(["arm64"])) - @skipIf(archs=["arm64e"], bugnumber="the swift.org toolchain cannot produce arm64e binaries") - def test(self): - """Test module import from dylibs with an architecture - that uses a different SDK""" - self.build() - target, process, thread, bkpt = lldbutil.run_to_name_breakpoint( - self, "foo", extra_images=['OtherArch.framework/OtherArch']) - types_log = self.getBuildArtifact('types.log') - self.expect("log enable lldb types -f "+ types_log) - - self.expect("expression 1", substrs=['1']) - frame = thread.frames[0] - while 'OtherArch.foo' not in frame.name: - frame = frame.parent - self.assertIsNotNone(frame) - thread.SetSelectedFrame(frame.idx) - self.expect("expression 1", substrs=['1']) - - # Check the types log. - self.filecheck('platform shell cat "%s"' % types_log, __file__) - # CHECK: SwiftASTContextForExpressions(module: "OtherArch", cu: "OtherArch.swift")::LogConfiguration(){{.*}}arm64e-apple-macos - # CHECK: SwiftASTContextForExpressions(module: "arm64-apple-macos{{.*}})::LogConfiguration(){{.*}}arm64-apple-macos diff --git a/lldb/test/API/lang/swift/other_arch_dylib/main.swift b/lldb/test/API/lang/swift/other_arch_dylib/main.swift deleted file mode 100644 index 85c93e77f3574..0000000000000 --- a/lldb/test/API/lang/swift/other_arch_dylib/main.swift +++ /dev/null @@ -1,3 +0,0 @@ -import OtherArch - -foo()