@@ -42,15 +42,15 @@ private import HiddenDep
4242// RUN: -enable-experimental-feature AccessLevelOnImport
4343
4444// RUN: %target-swift-frontend -typecheck %t/ClientOfPublic.swift -I %t \
45- // RUN: -enable-library-evolution - package-name MyOtherPackage \
46- // RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-HIDDEN- DEP %s
47- // VISIBLE-HIDDEN- DEP: source: '{{.*}} HiddenDep.swiftmodule '
45+ // RUN: -package-name MyOtherPackage \
46+ // RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-DEP %s
47+ // VISIBLE-DEP: loaded module ' HiddenDep'
4848//--- ClientOfPublic.swift
4949import PublicDep
5050
5151// RUN: %target-swift-frontend -typecheck %t/ClientOfNonPublic.swift -I %t \
52- // RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=HIDDEN-HIDDEN- DEP %s
53- // HIDDEN-HIDDEN- DEP-NOT: HiddenDep
52+ // RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=HIDDEN-DEP %s
53+ // HIDDEN-DEP-NOT: loaded module ' HiddenDep'
5454//--- ClientOfNonPublic.swift
5555import PackageDep
5656import InternalDep
@@ -70,7 +70,29 @@ import PrivateDep
7070// RUN: -enable-experimental-feature AccessLevelOnImport
7171
7272// RUN: %target-swift-frontend -typecheck %t/ClientOfPublic.swift -I %t \
73- // RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-HIDDEN- DEP %s
73+ // RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-DEP %s
7474// RUN: %target-swift-frontend -typecheck %t/ClientOfNonPublic.swift -I %t \
75- // RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-HIDDEN- DEP %s
75+ // RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-DEP %s
7676
77+ /// Even with resilience, all access-level dependencies are visible to clients
78+ /// for modules with testing enabled.
79+ // RUN: %target-swift-frontend -emit-module %t/PublicDep.swift -o %t -I %t \
80+ // RUN: -enable-library-evolution -enable-testing \
81+ // RUN: -enable-experimental-feature AccessLevelOnImport
82+ // RUN: %target-swift-frontend -emit-module %t/PackageDep.swift -o %t -I %t \
83+ // RUN: -enable-library-evolution -enable-testing -package-name MyPackage \
84+ // RUN: -enable-experimental-feature AccessLevelOnImport
85+ // RUN: %target-swift-frontend -emit-module %t/InternalDep.swift -o %t -I %t \
86+ // RUN: -enable-library-evolution -enable-testing \
87+ // RUN: -enable-experimental-feature AccessLevelOnImport
88+ // RUN: %target-swift-frontend -emit-module %t/FileprivateDep.swift -o %t -I %t \
89+ // RUN: -enable-library-evolution -enable-testing \
90+ // RUN: -enable-experimental-feature AccessLevelOnImport
91+ // RUN: %target-swift-frontend -emit-module %t/PrivateDep.swift -o %t -I %t \
92+ // RUN: -enable-library-evolution -enable-testing \
93+ // RUN: -enable-experimental-feature AccessLevelOnImport
94+
95+ // RUN: %target-swift-frontend -typecheck %t/ClientOfPublic.swift -I %t \
96+ // RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-DEP %s
97+ // RUN: %target-swift-frontend -typecheck %t/ClientOfNonPublic.swift -I %t \
98+ // RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-DEP %s
0 commit comments