Skip to content

Commit 8e8a56d

Browse files
author
David Ungar
authored
Merge pull request #719 from davidungar/minor-test-cleanup
Clean up testRemoval
2 parents b754520 + e702efe commit 8e8a56d

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

Tests/SwiftDriverTests/IncrementalCompilationTests.swift

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -372,27 +372,10 @@ extension RemovalTestOptions {
372372
}
373373

374374
extension IncrementalCompilationTests {
375-
/// While all cases are being made to work, just test for now in known good cases
376-
func testRemovalInPassingCases() throws {
377-
try testRemoval(includeFailingCombos: false)
378-
}
379-
380-
func testRemovalInAllCases() throws {
381-
try testRemoval(includeFailingCombos: true)
382-
}
383-
384-
func testRemoval(includeFailingCombos: Bool) throws {
375+
func testRemoval() throws {
385376
#if !os(Linux)
386-
let knownGoodCombos: [[RemovalTestOption]] = [
387-
[.removeInputFromInvocation],
388-
]
389377
for optionsToTest in RemovalTestOptions.allCombinations {
390-
if knownGoodCombos.contains(optionsToTest) {
391-
try testRemoval(optionsToTest)
392-
}
393-
else if includeFailingCombos {
394-
try testRemoval(optionsToTest)
395-
}
378+
try testRemoval(optionsToTest)
396379
}
397380
#endif
398381
}
@@ -826,6 +809,11 @@ extension IncrementalCompilationTests {
826809
// containing entries for the deleted file. This test simulates that
827810
// condition by restoring the deleted priors. The driver ought to be fixed
828811
// to cull any entries for removed files from the deserialized priors.
812+
//
813+
// There is a wrinkle: How can a node for a decl in a removed file be
814+
// distinguished from a node for a decl in an incrementally-imported
815+
// external dependency? In both cases the node's `dependencySource`
816+
// is for a file that is not in the `inputFiles`.
829817
print("*** WARNING: skipping checks, driver fails to cleaned out the graph ***",
830818
to: &stderrStream); stderrStream.flush()
831819
return graph

0 commit comments

Comments
 (0)