Skip to content

Commit bd7a7cf

Browse files
author
David Ungar
committed
Update test
1 parent 44daa88 commit bd7a7cf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/Misc/serialized-diagnostics-batch-mode-nonprimary-errors-only.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@
22
//
33
// RUN: rm -f %t.*
44

5+
// First, put the causal primary first:
6+
57
// RUN: not %target-swift-frontend -typecheck -primary-file %s -serialize-diagnostics-path %t.main.dia -primary-file %S/../Inputs/empty.swift -serialize-diagnostics-path %t.empty.dia %S/Inputs/serialized-diagnostics-batch-mode-suppression-helper.swift 2> %t.stderr.txt
68

7-
// RUN: test -e %t.main.dia -a ! -s %t.empty.dia
9+
// RUN: test -e %t.main.dia -a -s %t.main.dia
10+
// RUN: test -e %t.empty.dia -a ! -s %t.empty.dia
11+
12+
// Now, put the causal primary second:
13+
// (No matter which order, the error message goes with the causal primary.)
14+
15+
// RUN: not %target-swift-frontend -typecheck -primary-file %S/../Inputs/empty.swift -serialize-diagnostics-path %t.empty.dia -primary-file %s -serialize-diagnostics-path %t.main.dia %S/Inputs/serialized-diagnostics-batch-mode-suppression-helper.swift 2> %t.stderr.txt
16+
17+
// RUN: test -e %t.main.dia -a -s %t.main.dia
818
// RUN: test -e %t.empty.dia -a ! -s %t.empty.dia
919

1020
func test(x: SomeType) {

0 commit comments

Comments
 (0)