Skip to content

Commit 9fd34a0

Browse files
author
David Ungar
committed
Fix a test
1 parent 68f0ea2 commit 9fd34a0

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

test/Driver/Dependencies/range-lifecycle.swift

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
// RUN: head -1 %t/comparo | %FileCheck -check-prefix=CHECK-COMPARE-DISABLED-ARGUMENTS %s
139139
// RUN: tail -1 %t/comparo | %FileCheck -check-prefix=CHECK-COMPARE-0-0-3 %s
140140

141-
// CHECK-COMPARE-0-0-3: *** Comparing incremental schemes: deps: 0, ranges: 0, total: 3,
141+
// CHECK-COMPARE-0-0-3: *** Range benefit: 0 compilations, 0 stages, deps: 0, ranges: 0, total: 3, requested: ranges, used: ranges***
142142

143143
// RUN: %FileCheck -check-prefix=CHECK-INCREMENTAL-ENABLED %s < %t/output3
144144
// CHECK-INCREMENTAL-ENABLED-NOT: Incremental compilation has been disabled
@@ -163,7 +163,7 @@
163163
// RUN: %FileCheck -check-prefix=CHECK-FILEB-ONLY %s < %t/output4
164164

165165
// RUN: %FileCheck -check-prefix=COMPARE-2-1-3 %s < %t/output4
166-
// COMPARE-2-1-3: *** Comparing incremental schemes: deps: 2, ranges: 1, total: 3, requested: ranges, using: ranges
166+
// COMPARE-2-1-3: *** Range benefit: 1 compilations, 1 stages, deps: 2, ranges: 1, total: 3, requested: ranges, used: ranges***
167167

168168
// CHECK-FILEB-ONLY-NOT: Queuing{{.*}}<= main.swift
169169
// CHECK-FILEB-ONLY-NOT: Queuing{{.*}}<= fileA.swift
@@ -190,8 +190,7 @@
190190
// RUN: %FileCheck -check-prefix=CHECK-FILEA-AND-FILEB-ONLY %s < %t/output5
191191

192192
// RUN: %FileCheck -check-prefix=COMPARE-2-2-3 %s < %t/output5
193-
// COMPARE-2-2-3: *** Comparing incremental schemes: deps: 2, ranges: 2, total: 3, requested: ranges, using: ranges
194-
193+
// COMPARE-2-2-3: *** Range benefit: 0 compilations, 1 stages, deps: 2, ranges: 2, total: 3, requested: ranges, used: ranges***
195194

196195

197196
// CHECK-FILEA-AND-FILEB-ONLY-NOT: Queuing{{.*}}<= main.swift
@@ -231,7 +230,7 @@
231230
// RUN: %FileCheck -check-prefix=CHECK-INITIALLY-ABSENT-MAIN %s < %t/output6
232231

233232
// RUN: %FileCheck -check-prefix=CHECK-COMPARE-3-3-3-RANGES %s < %t/output6
234-
// CHECK-COMPARE-3-3-3-RANGES: *** Comparing incremental schemes: deps: 3, ranges: 3, total: 3, requested: ranges, using: ranges
233+
// CHECK-COMPARE-3-3-3-RANGES: *** Range benefit: 0 compilations, 0 stages, deps: 3, ranges: 3, total: 3, requested: ranges, used: ranges***
235234

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

@@ -263,7 +262,7 @@
263262
// RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output7
264263

265264
// RUN: %FileCheck -check-prefix=CHECK-COMPARE-4-4-4 %s < %t/output7
266-
// CHECK-COMPARE-4-4-4: *** Comparing incremental schemes: deps: 4, ranges: 4, total: 4, requested: ranges, using: deps
265+
// CHECK-COMPARE-4-4-4: *** Range benefit: 0 compilations, 0 stages, deps: 4, ranges (falling back): 4, total: 4, requested: ranges, used: deps***
267266

268267
// RUN: cmp fileB.swift fileB.compiledsource
269268

@@ -316,8 +315,8 @@
316315
// RUN: cp %t/fileB5.swift %t/fileB.swift
317316
// 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
318317

319-
// RUN: %FileCheck -check-prefix=CHECK-COMPARE-3-3-3-DEPS %s < %t/output9
320-
// CHECK-COMPARE-3-3-3-DEPS: *** Comparing incremental schemes: deps: 3, ranges: 3, total: 3, requested: ranges, using: deps
318+
// RUN: %FileCheck -check-prefix=CHECK-COMPARE-0-1-3-3-3-DEPS %s < %t/output9
319+
// CHECK-COMPARE-0-1-3-3-3-DEPS: *** Range benefit: 0 compilations, 1 stages, deps: 3, ranges (falling back): 3, total: 3, requested: ranges, used: deps***
321320

322321
// RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output9
323322

@@ -329,7 +328,9 @@
329328
// RUN: cp %t/fileB4.swift %t/fileB.swift
330329
// 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
331330

332-
// RUN: %FileCheck -check-prefix=CHECK-COMPARE-3-3-3-DEPS %s < %t/output10
331+
// RUN: %FileCheck -check-prefix=CHECK-COMPARE-0-0-3-3-3-DEPS %s < %t/output10
332+
// CHECK-COMPARE-0-0-3-3-3-DEPS: *** Range benefit: 0 compilations, 0 stages, deps: 3, ranges (falling back): 3, total: 3, requested: ranges, used: deps***
333+
333334
// RUN: %FileCheck -check-prefix=CHECK-HAS-NO-BATCHES %s < %t/output10
334335

335336

0 commit comments

Comments
 (0)