Skip to content

Commit 34c5fa9

Browse files
committed
Comment disabled testcases causing inbalanced AST
1 parent b0a8e8a commit 34c5fa9

File tree

2 files changed

+35
-36
lines changed

2 files changed

+35
-36
lines changed

Sources/ASTParser/parser.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ private func parseASTString(astString: String) -> [Node] {
8181
data = ""
8282
} else {
8383
data = data + String(char)
84-
if data == "(source_file" { print("Yes") }
8584
if char == "\"" || char == "'" {
8685
if quoteChar == nil {
8786
quoteChar = char

Tests/Functional/TestMiscellaneous.swift

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -70,41 +70,41 @@ class MiscellaneousTestCase: XCTestCase {
7070
}
7171
}
7272

73-
func testTestDependenciesSimple() {
74-
#if false
75-
//FIXME disabled pending no more magic
76-
fixture(name: "TestDependencies/Simple") { prefix in
77-
XCTAssertBuilds(prefix, "App")
78-
XCTAssertDirectoryExists(prefix, "App/Packages/TestingLib-1.2.3")
79-
XCTAssertFileExists(prefix, "App/.build/debug/Foo.swiftmodule")
80-
XCTAssertFileExists(prefix, "App/.build/debug/TestingLib.swiftmodule")
81-
}
82-
#endif
83-
}
84-
85-
func testTestDependenciesComplex() {
86-
#if false
87-
//FIXME disabled pending no more magic
88-
89-
// verifies that testDependencies of dependencies are not fetched or built
90-
91-
fixture(name: "TestDependencies/Complex") { prefix in
92-
XCTAssertBuilds(prefix, "App")
93-
94-
XCTAssertDirectoryExists(prefix, "App/Packages/TestingLib-1.2.3")
95-
XCTAssertDirectoryExists(prefix, "App/Packages/Foo-1.2.3")
96-
97-
XCTAssertFileExists(prefix, "App/.build/debug/App")
98-
XCTAssertFileExists(prefix, "App/.build/debug/Foo.swiftmodule")
99-
XCTAssertFileExists(prefix, "App/.build/debug/TestingLib.swiftmodule")
100-
101-
XCTAssertNoSuchPath(prefix, "App/Packages/PrivateFooLib-1.2.3")
102-
XCTAssertNoSuchPath(prefix, "App/Packages/TestingFooLib-1.2.3")
103-
XCTAssertNoSuchPath(prefix, "App/.build/debug/PrivateFooLib.swiftmodule")
104-
XCTAssertNoSuchPath(prefix, "App/.build/debug/TestingFooLib.swiftmodule")
105-
}
106-
#endif
107-
}
73+
// func testTestDependenciesSimple() {
74+
// #if false
75+
// //FIXME disabled pending no more magic
76+
// fixture(name: "TestDependencies/Simple") { prefix in
77+
// XCTAssertBuilds(prefix, "App")
78+
// XCTAssertDirectoryExists(prefix, "App/Packages/TestingLib-1.2.3")
79+
// XCTAssertFileExists(prefix, "App/.build/debug/Foo.swiftmodule")
80+
// XCTAssertFileExists(prefix, "App/.build/debug/TestingLib.swiftmodule")
81+
// }
82+
// #endif
83+
// }
84+
85+
// func testTestDependenciesComplex() {
86+
// #if false
87+
// //FIXME disabled pending no more magic
88+
89+
// // verifies that testDependencies of dependencies are not fetched or built
90+
91+
// fixture(name: "TestDependencies/Complex") { prefix in
92+
// XCTAssertBuilds(prefix, "App")
93+
94+
// XCTAssertDirectoryExists(prefix, "App/Packages/TestingLib-1.2.3")
95+
// XCTAssertDirectoryExists(prefix, "App/Packages/Foo-1.2.3")
96+
97+
// XCTAssertFileExists(prefix, "App/.build/debug/App")
98+
// XCTAssertFileExists(prefix, "App/.build/debug/Foo.swiftmodule")
99+
// XCTAssertFileExists(prefix, "App/.build/debug/TestingLib.swiftmodule")
100+
101+
// XCTAssertNoSuchPath(prefix, "App/Packages/PrivateFooLib-1.2.3")
102+
// XCTAssertNoSuchPath(prefix, "App/Packages/TestingFooLib-1.2.3")
103+
// XCTAssertNoSuchPath(prefix, "App/.build/debug/PrivateFooLib.swiftmodule")
104+
// XCTAssertNoSuchPath(prefix, "App/.build/debug/TestingFooLib.swiftmodule")
105+
// }
106+
// #endif
107+
// }
108108

109109

110110
func testPassExactDependenciesToBuildCommand() {

0 commit comments

Comments
 (0)