Skip to content

Commit 57da035

Browse files
authored
Revert "[Test] Speculatively fix a non-deterministic issue"
1 parent 27e1fa6 commit 57da035

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/lit-test-helper/main.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ func printParserDiags(args: CommandLineArguments) throws {
424424
class ParserDiagPrinter: DiagnosticConsumer {
425425
var counter : (error: Int, warning: Int, note: Int) = (0, 0, 0)
426426
var calculateLineColumn: Bool { return true }
427+
func finalize() {}
427428
func handle(_ diag: Diagnostic) {
428429
switch diag.message.severity {
429430
case .error:
@@ -437,7 +438,7 @@ func printParserDiags(args: CommandLineArguments) throws {
437438
}
438439
print(diag.debugDescription)
439440
}
440-
func finalize() {
441+
deinit {
441442
print("\(counter.error) error(s) \(counter.warning) warnings(s) \(counter.note) note(s)")
442443
}
443444
}

lit_tests/parser-diags.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %lit-test-helper -source-file %s -dump-diags 2>&1 | %FileCheck %s
22

3+
// REQUIRES: rdar71046813
4+
35
// CHECK: [[@LINE+2]]:11 error: consecutive statements on a line must be separated by ';'
46
// CHECK-NEXT: Fixit: ([[@LINE+1]]:11,[[@LINE+1]]:11) Text: ";"
57
let number Int

0 commit comments

Comments
 (0)