Add -verify-ignore-unrelated to a few tests

This commit is contained in:
Alejandro Alonso
2025-10-07 13:16:36 -07:00
parent 60b3b088d5
commit 9f2aec5286
5 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
// RUN: not %target-typecheck-verify-swift
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated
// This is highly invalid, so just don't crash.

View File

@@ -3,7 +3,7 @@
// This needs to be a separate test from verify.swift because compilation will
// terminate after the failing import statement.
// RUN: not %target-typecheck-verify-swift -I %S/Inputs/broken-c-module 2>&1 | %FileCheck %s
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated -I %S/Inputs/broken-c-module 2>&1 | %FileCheck %s
// CHECK: [[@LINE+3]]:8: error: unexpected error produced: could not build
// CHECK: note: diagnostic produced elsewhere: in file included from <module-includes>

View File

@@ -1,6 +1,6 @@
// Tests for the Swift frontends `-verify` mode.
// RUN: not %target-typecheck-verify-swift 2>&1 | %FileCheck %s
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated 2>&1 | %FileCheck %s
// CHECK: [[@LINE+1]]:1: error: unexpected error produced: cannot find 'undefinedFunc' in scope
undefinedFunc()

View File

@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: not %target-swift-frontend -typecheck -verify -serialize-diagnostics-path %t/serialized.dia %s 2>&1 | %FileCheck %s
// RUN: not %target-swift-frontend -typecheck -verify -warnings-as-errors %s 2>&1 | %FileCheck %s -check-prefix CHECK-WARNINGS-AS-ERRORS
// RUN: not %target-swift-frontend -typecheck -verify -verify-ignore-unrelated -serialize-diagnostics-path %t/serialized.dia %s 2>&1 | %FileCheck %s
// RUN: not %target-swift-frontend -typecheck -verify -verify-ignore-unrelated -warnings-as-errors %s 2>&1 | %FileCheck %s -check-prefix CHECK-WARNINGS-AS-ERRORS
// RUN: %FileCheck %s -check-prefix CHECK-SERIALIZED <%t/serialized.dia
// Wrong message

View File

@@ -1,4 +1,4 @@
// RUN: not %target-typecheck-verify-swift -I %S/Inputs -enable-experimental-cxx-interop 2>&1 | %FileCheck %s
// RUN: not %target-typecheck-verify-swift -verify-ignore-unrelated -I %S/Inputs -enable-experimental-cxx-interop 2>&1 | %FileCheck %s
// README: If you just added support for protocol composition to the
// ClangTypeConverter, please update this test to use a different type that we