Skip to content

Commit 9f2aec5

Browse files
committed
Add -verify-ignore-unrelated to a few tests
1 parent 60b3b08 commit 9f2aec5

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

test/AssociatedTypeInference/rdar127575477.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not %target-typecheck-verify-swift
1+
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated
22

33
// This is highly invalid, so just don't crash.
44

test/Frontend/DiagnosticVerifier/broken-c-module.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This needs to be a separate test from verify.swift because compilation will
44
// terminate after the failing import statement.
55

6-
// RUN: not %target-typecheck-verify-swift -I %S/Inputs/broken-c-module 2>&1 | %FileCheck %s
6+
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated -I %S/Inputs/broken-c-module 2>&1 | %FileCheck %s
77

88
// CHECK: [[@LINE+3]]:8: error: unexpected error produced: could not build
99
// CHECK: note: diagnostic produced elsewhere: in file included from <module-includes>

test/Frontend/DiagnosticVerifier/verify.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Tests for the Swift frontends `-verify` mode.
22

3-
// RUN: not %target-typecheck-verify-swift 2>&1 | %FileCheck %s
3+
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated 2>&1 | %FileCheck %s
44

55
// CHECK: [[@LINE+1]]:1: error: unexpected error produced: cannot find 'undefinedFunc' in scope
66
undefinedFunc()

test/Frontend/DiagnosticVerifier/verify2.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: not %target-swift-frontend -typecheck -verify -serialize-diagnostics-path %t/serialized.dia %s 2>&1 | %FileCheck %s
3-
// RUN: not %target-swift-frontend -typecheck -verify -warnings-as-errors %s 2>&1 | %FileCheck %s -check-prefix CHECK-WARNINGS-AS-ERRORS
2+
// RUN: not %target-swift-frontend -typecheck -verify -verify-ignore-unrelated -serialize-diagnostics-path %t/serialized.dia %s 2>&1 | %FileCheck %s
3+
// RUN: not %target-swift-frontend -typecheck -verify -verify-ignore-unrelated -warnings-as-errors %s 2>&1 | %FileCheck %s -check-prefix CHECK-WARNINGS-AS-ERRORS
44
// RUN: %FileCheck %s -check-prefix CHECK-SERIALIZED <%t/serialized.dia
55

66
// Wrong message

test/Interop/Cxx/templates/function-template-typechecker-errors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not %target-typecheck-verify-swift -I %S/Inputs -enable-experimental-cxx-interop 2>&1 | %FileCheck %s
1+
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated -I %S/Inputs -enable-experimental-cxx-interop 2>&1 | %FileCheck %s
22

33
// README: If you just added support for protocol composition to the
44
// ClangTypeConverter, please update this test to use a different type that we

0 commit comments

Comments
 (0)