Skip to content

Commit 4f2431f

Browse files
committed
[Test] Disable some checks on non-resilient swiftinterfaces
Define SWIFT_ACCEPT_NON_RESILIENT_INTERFACES in tests intentionnally building against a non-resilient swiftinterface.
1 parent c3867db commit 4f2431f

5 files changed

+11
-6
lines changed

test/DebugInfo/ParseableInterfaceImports.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend-typecheck %S/basic.swift \
33
// RUN: -emit-module-interface-path %t/basic.swiftinterface
4-
// RUN: %target-swift-frontend -emit-ir -module-name Foo %s -I %t -g -o - \
4+
// RUN: env SWIFT_ACCEPT_NON_RESILIENT_INTERFACES=1 \
5+
// RUN: %target-swift-frontend -emit-ir -module-name Foo %s -I %t -g -o - \
56
// RUN: | %FileCheck %s
6-
// RUN: %target-swift-frontend -emit-ir -module-name Foo %s -I %t -g -o - \
7+
// RUN: env SWIFT_ACCEPT_NON_RESILIENT_INTERFACES=1 \
8+
// RUN: %target-swift-frontend -emit-ir -module-name Foo %s -I %t -g -o - \
79
// RUN: -sdk %t | %FileCheck %s --check-prefix=SDK
810

911
import basic

test/IRGen/prespecialized-metadata/class-fileprivate-inmodule-1argument-1ancestor-1distinct_use-1st_ancestor_nongeneric-external-nonresilient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22

33
// RUN: %target-build-swift -emit-library -module-name TestModule -module-link-name TestModule %S/Inputs/class-open-0argument.swift -emit-module-interface -swift-version 5 -o %t/%target-library-name(TestModule)
4-
// RUN: %target-swift-frontend -prespecialize-generic-metadata -target %module-target-future -emit-ir -I %t -L %t %s | %FileCheck %s -DINT=i%target-ptrsize -DALIGNMENT=%target-alignment --check-prefix=CHECK --check-prefix=CHECK-%target-vendor
4+
// RUN: env SWIFT_ACCEPT_NON_RESILIENT_INTERFACES=1 %target-swift-frontend -prespecialize-generic-metadata -target %module-target-future -emit-ir -I %t -L %t %s | %FileCheck %s -DINT=i%target-ptrsize -DALIGNMENT=%target-alignment --check-prefix=CHECK --check-prefix=CHECK-%target-vendor
55

66
// REQUIRES: VENDOR=apple || OS=linux-gnu
77
// UNSUPPORTED: CPU=i386 && OS=ios

test/IRGen/prespecialized-metadata/enum-inmodule-1argument-1conformance-external_nonresilient-1distinct_use.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// RUN: %empty-directory(%t)
22

33
// RUN: %target-build-swift -emit-library -module-name TestModule -module-link-name TestModule %S/Inputs/protocol-public-empty.swift -emit-module-interface -swift-version 5 -o %t/%target-library-name(TestModule)
4-
// RUN: %target-swift-frontend -prespecialize-generic-metadata -target %module-target-future -emit-ir -I %t -L %t %s | %FileCheck %s -DINT=i%target-ptrsize -DALIGNMENT=%target-alignment
4+
// RUN: env SWIFT_ACCEPT_NON_RESILIENT_INTERFACES=1 \
5+
// RUN: %target-swift-frontend -prespecialize-generic-metadata -target %module-target-future -emit-ir -I %t -L %t %s | %FileCheck %s -DINT=i%target-ptrsize -DALIGNMENT=%target-alignment
56

67
// REQUIRES: VENDOR=apple || OS=linux-gnu
78
// UNSUPPORTED: CPU=i386 && OS=ios
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: mkdir %t/stats
33
// RUN: mkdir %t/cache
4-
// RUN: %target-swift-frontend -typecheck %s -I %S/Inputs -stats-output-dir %t/stats -module-cache-path %t/cache
4+
// RUN: env SWIFT_ACCEPT_NON_RESILIENT_INTERFACES=1 \
5+
// RUN: %target-swift-frontend -typecheck %s -I %S/Inputs -stats-output-dir %t/stats -module-cache-path %t/cache
56

67
import empty

test/ModuleInterface/stored-properties-client.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
// 2. Build this file and link with StoredProperties
1111

12-
// RUN: %target-build-swift %s -I %t -L %t -lStoredProperties -o %t/stored-properties-client %target-rpath(%t)
12+
// RUN: env SWIFT_ACCEPT_NON_RESILIENT_INTERFACES=1 \
13+
// RUN: %target-build-swift %s -I %t -L %t -lStoredProperties -o %t/stored-properties-client %target-rpath(%t)
1314

1415
// 3. Codesign and run this, and ensure it exits successfully.
1516

0 commit comments

Comments
 (0)