Skip to content

Commit 54b7bfc

Browse files
committed
[Test] Enable library-evolution in relevant tests using swiftinterfaces
1 parent 0ce6836 commit 54b7bfc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Diff for: test/ModuleInterface/ModuleCache/Inputs/mock-sdk/ExportedLib.swiftinterface

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// swift-interface-format-version: 1.0
2-
// swift-module-flags: -parse-stdlib -module-name ExportedLib
2+
// swift-module-flags: -parse-stdlib -module-name ExportedLib -enable-library-evolution
33

44
@_exported import SomeCModule
55

Diff for: test/ModuleInterface/ModuleCache/Inputs/mock-sdk/SdkLib.swiftinterface

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// swift-interface-format-version: 1.0
2-
// swift-module-flags: -parse-stdlib -module-name SdkLib
2+
// swift-module-flags: -parse-stdlib -module-name SdkLib -enable-library-evolution
33

44
@_exported import ExportedLib
55

Diff for: test/ModuleInterface/ModuleCache/RebuildRemarks/malformed-compiled-module.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
77

88
// 2. Create an interface for it
9-
// RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5
9+
// RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5 -enable-library-evolution
1010

1111
// 3. Create an empty .swiftmodule, which will force recompiling from the interface
1212
// RUN: touch %t/Build/TestModule.swiftmodule
@@ -16,4 +16,4 @@
1616

1717
import TestModule // expected-remark {{rebuilding module 'TestModule' from interface}}
1818
// expected-note @-1 {{is out of date}}
19-
// expected-note @-2 {{malformed}}
19+
// expected-note @-2 {{malformed}}

Diff for: test/ModuleInterface/ModuleCache/RebuildRemarks/missing-dependency.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
66

77
// 2. Create both an interface and a compiled module for it
8-
// RUN: %target-swift-frontend -emit-module -o %t/Build/TestModule.swiftmodule %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5 -module-name TestModule
8+
// RUN: %target-swift-frontend -emit-module -o %t/Build/TestModule.swiftmodule %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5 -module-name TestModule -enable-library-evolution
99

1010
// 3. Make the compiled module unreadable so it gets added as a dependency but is not used
1111
// RUN: mv %t/Build/TestModule.swiftmodule %t/Build/TestModule.swiftmodule.moved-aside

Diff for: test/ModuleInterface/ModuleCache/RebuildRemarks/out-of-date-cached-module.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
66

77
// 2. Create an interface for it
8-
// RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5
8+
// RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5 -enable-library-evolution
99

1010
// 3. Try to import the interface, which will pass and create a cached module
1111
// RUN: %target-swift-frontend -typecheck %s -I %t/Build -module-cache-path %t/ModuleCache

0 commit comments

Comments
 (0)