Skip to content

Commit 9b4f05d

Browse files
authored
Merge pull request #24964 from slavapestov/more-test-stable-abi-tweaks
Split up a couple more tests into stable and pre-stable ABI deployment target versions
2 parents 3a1771c + 6363961 commit 9b4f05d

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: %target-swift-frontend -emit-module-path %t/resilient_struct.swiftmodule %S/../Inputs/resilient_struct.swift -enable-library-evolution
3+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module-path %t/resilient_objc_class.swiftmodule %S/../Inputs/resilient_objc_class.swift -I %t -enable-library-evolution -emit-objc-header-path %t/resilient_objc_class.h
4+
5+
// RUN: cp %S/Inputs/custom-modules/module.map %t/module.map
6+
7+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %S/resilient-ancestry.swift -module-name resilient -emit-objc-header-path %t/resilient.h -I %t -enable-library-evolution -enable-resilient-objc-class-stubs
8+
// RUN: %FileCheck %S/resilient-ancestry.swift < %t/resilient.h
9+
// RUN: %check-in-clang %t/resilient.h -I %t
10+
11+
// REQUIRES: objc_interop
12+
// REQUIRES: swift_stable_abi

test/PrintAsObjC/resilient-ancestry.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010
// RUN: %FileCheck %s --check-prefix=NO-STUBS < %t/resilient.h
1111
// RUN: %check-in-clang %t/resilient.h -I %t
1212

13-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -module-name resilient -emit-objc-header-path %t/resilient.h -I %t -enable-library-evolution -enable-resilient-objc-class-stubs
14-
// RUN: %FileCheck %s < %t/resilient.h
15-
// RUN: %check-in-clang %t/resilient.h -I %t
16-
1713
// REQUIRES: objc_interop
1814

15+
// See also resilient-ancestry.swift, for the stable ABI deployment target test.
16+
1917
import Foundation
2018
import resilient_objc_class
2119

test/decl/protocol/conforms/nscoding.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %s -verify
44
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %s -disable-nskeyedarchiver-diagnostics 2>&1 | %FileCheck -check-prefix CHECK-NO-DIAGS %s
5-
65
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %s -dump-ast -target %target-pre-stable-abi-triple > %t/old.ast
7-
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %s -dump-ast -target %target-stable-abi-triple > %t/new.ast
86

97
// RUN: %FileCheck --check-prefix=CHECK-OLD %s < %t/old.ast
108
// RUN: %FileCheck --check-prefix=NEGATIVE %s < %t/old.ast
11-
// RUN: %FileCheck --check-prefix=NEGATIVE --check-prefix=NEGATIVE-NEW %s < %t/new.ast
129

1310
// REQUIRES: objc_interop
1411

12+
// See also nscoding_stable_abi.swift, for the stable ABI deployment
13+
// target test.
14+
1515
// CHECK-NO-DIAGS-NOT: NSCoding
1616
// CHECK-NO-DIAGS-NOT: unstable
1717

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// RUN: %empty-directory(%t)
2+
3+
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %S/nscoding.swift -dump-ast -target %target-stable-abi-triple > %t/new.ast
4+
5+
// RUN: %FileCheck --check-prefix=NEGATIVE --check-prefix=NEGATIVE-NEW %S/nscoding.swift < %t/new.ast
6+
7+
// REQUIRES: objc_interop
8+
// REQUIRES: swift_stable_abi

0 commit comments

Comments
 (0)