 // RUN: cp %t/fileB4.swift %t/fileB.swift
 // RUN: cd %t &&  %swiftc_driver -driver-compare-incremental-schemes -enable-source-range-dependencies -output-file-map %t/output.json -incremental -enable-batch-mode ./main.swift ./fileA.swift ./fileB.swift -module-name main -j2 -driver-show-job-lifecycle -driver-show-incremental >& %t/output10
 
-// RUN: %t/main | tee run8 | grep SignedInteger > /dev/null && rm %t/main
+// RUN: %FileCheck -check-prefix=CHECK-COMPARE-MOOT-3 %s < %t/output10
+// RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES  %s < %t/output10
+
+
+
+// RUN: %t/main | tee run10 | grep SignedInteger > /dev/null && rm %t/main

// RUN: cp %t/fileB5.swift %t/fileB.swift
// RUN: cd %t && not %swiftc_driver -driver-compare-incremental-schemes -enable-source-range-dependencies -output-file-map %t/output.json -incremental -enable-batch-mode ./main.swift ./fileA.swift ./fileB.swift -module-name main -j2 -driver-show-job-lifecycle -driver-show-incremental >& %t/output9

// =============================================================================
// And a fix:
// =============================================================================

// RUN: %FileCheck -check-prefix=CHECK-INITIALLY-ABSENT-MAIN %s < %t/output6

// RUN: %FileCheck -check-prefix=CHECK-COMPARE-MOOT-3 %s < %t/output6
// CHECK-COMPARE-MOOT-3: *** Comparing incremental strategies is moot: would fall back and run 3, total: 3 ***

// CHECK-INITIALLY-ABSENT-MAIN-NOT: Queueing{{.*}}<= main.swift

