Skip to content

Revert "Reenable disabled tests (#5957)" #5963

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
Dec 9, 2022
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
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ let package = Package(
name: "WorkspaceTests",
dependencies: ["Workspace", "SPMTestSupport"]
),
.testTarget(
// rdar://101868275 "error: cannot find 'XCTAssertEqual' in scope" can affect almost any functional test, so we flat out disable them all until we know what is going on
/*.testTarget(
name: "FunctionalTests",
dependencies: [
"swift-build",
Expand All @@ -516,7 +517,7 @@ let package = Package(
"PackageModel",
"SPMTestSupport"
]
),
),*/
.testTarget(
name: "FunctionalPerformanceTests",
dependencies: [
Expand Down
2 changes: 1 addition & 1 deletion Tests/CommandsTests/BuildToolTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ final class BuildToolTests: CommandsTestCase {
}

func testBuildCompleteMessage() throws {
throw XCTSkip("This test isn't stable w.r.t. the build cache; rdar://101815761")
throw XCTSkip("This test fails to match the 'Compiling' regex; rdar://101815761")

try fixture(name: "DependencyResolution/Internal/Simple") { fixturePath in
do {
Expand Down
2 changes: 0 additions & 2 deletions Tests/FunctionalTests/PluginTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,6 @@ class PluginTests: XCTestCase {
outputDirectory: pluginDir.appending(component: "output"),
toolSearchDirectories: toolSearchDirectories,
toolNamesToPaths: [:],
toolNamesToTriples: [:],
writableDirectories: [pluginDir.appending(component: "output")],
readOnlyDirectories: [package.path],
fileSystem: localFileSystem,
Expand Down Expand Up @@ -723,7 +722,6 @@ class PluginTests: XCTestCase {
outputDirectory: pluginDir.appending(component: "output"),
toolSearchDirectories: [try UserToolchain.default.swiftCompilerPath.parentDirectory],
toolNamesToPaths: [:],
toolNamesToTriples: [:],
writableDirectories: [pluginDir.appending(component: "output")],
readOnlyDirectories: [package.path],
fileSystem: localFileSystem,
Expand Down
2 changes: 2 additions & 0 deletions Tests/WorkspaceTests/InitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ class InitTests: XCTestCase {
}

func testNonC99NameExecutablePackage() throws {
throw XCTSkip("This test fails to find XCTAssertEqual; rdar://101868275")

try withTemporaryDirectory(removeTreeOnDeinit: true) { tempDirPath in
XCTAssertDirectoryExists(tempDirPath)

Expand Down
2 changes: 2 additions & 0 deletions Tests/WorkspaceTests/WorkspaceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4291,6 +4291,8 @@ final class WorkspaceTests: XCTestCase {

// This verifies that the simplest possible loading APIs are available for package clients.
func testSimpleAPI() throws {
throw XCTSkip("This test fails to find XCTAssertEqual; rdar://101868275")

try testWithTemporaryDirectory { path in
// Create a temporary package as a test case.
let packagePath = path.appending(component: "MyPkg")
Expand Down
6 changes: 5 additions & 1 deletion Utilities/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,11 @@ def test(args):

note("Testing")
parse_test_args(args)
cmd = [os.path.join(args.bin_dir, "swift-test")]
cmd = [
"SWIFT_EXEC=" + args.swiftc_path,
"SWIFT_DRIVER_SWIFT_EXEC=" + args.swiftc_path,
os.path.join(args.bin_dir, "swift-test")
]
if args.parallel:
cmd.append("--parallel")
for arg in args.filter:
Expand Down