Skip to content

Commit 27e1fa6

Browse files
authored
Merge pull request #247 from rintaro/test-rdar71047138
[Test] Speculatively fix a non-deterministic issue
2 parents 96b0166 + 1b6dac3 commit 27e1fa6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Sources/lit-test-helper/main.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,6 @@ 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() {}
428427
func handle(_ diag: Diagnostic) {
429428
switch diag.message.severity {
430429
case .error:
@@ -438,7 +437,7 @@ func printParserDiags(args: CommandLineArguments) throws {
438437
}
439438
print(diag.debugDescription)
440439
}
441-
deinit {
440+
func finalize() {
442441
print("\(counter.error) error(s) \(counter.warning) warnings(s) \(counter.note) note(s)")
443442
}
444443
}

lit_tests/parser-diags.swift

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

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

0 commit comments

Comments
 (0)