Skip to content

Commit

Permalink
Nondet
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ungar committed Oct 19, 2020
1 parent df5fc6c commit 9df301c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Tests/SwiftDriverTests/IncrementalCompilationTests.swift
Expand Up @@ -385,6 +385,28 @@ final class IncrementalCompilationTests: XCTestCase {
"Found 0 batchable jobs",
"Forming into 0 batches",
])
func touch(_ name: String) {
let (path, contents) = inputPathsAndContents.filter {$0.0.pathString.contains(name)}.first!
try! localFileSystem.writeFileContents(path) { $0 <<< contents }
}
touch("other")
doABuild(expecting: [
"Incremental compilation decision: main.swift needs a cascading build; scheduling",
"Incremental compilation decision: other.swift needs a cascading build; scheduling",
"Incremental compilation decision: Queuing (initial): {compile: main.o <= main.swift}",
"Incremental compilation decision: Queuing (initial): {compile: other.o <= other.swift}",
"Incremental compilation decision: scheduling dependents of main.swift; needed cascading build",
"Incremental compilation decision: scheduling dependents of other.swift; needed cascading build",
"Incremental compilation decision: Queueing (dependent): {compile: main.o <= main.swift}",
"Incremental compilation decision: Queueing (dependent): {compile: other.o <= other.swift}",
"Found 2 batchable jobs",
"Forming into 1 batches",
"Forming batch job from 2 constituents",
"Starting Compiling theModule main.swift, other.swift",
"Finished Compiling theModule main.swift, other.swift",
"Starting Linking theModule",
"Finished Linking theModule",
])
}
}
}

0 comments on commit 9df301c

Please sign in to comment.