@@ -49,6 +49,7 @@ private import HiddenDep
4949import PublicDep
5050
5151// RUN: %target-swift-frontend -typecheck %t/ClientOfNonPublic.swift -I %t \
52+ // RUN: -package-name pkg \
5253// RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=HIDDEN-DEP %s
5354// HIDDEN-DEP-NOT: loaded module 'HiddenDep'
5455//--- ClientOfNonPublic.swift
@@ -61,6 +62,7 @@ import PrivateDep
6162// RUN: %target-swift-frontend -emit-module %t/PublicDep.swift -o %t -I %t \
6263// RUN: -enable-experimental-feature AccessLevelOnImport
6364// RUN: %target-swift-frontend -emit-module %t/PackageDep.swift -o %t -I %t \
65+ // RUN: -package-name MyPackage \
6466// RUN: -enable-experimental-feature AccessLevelOnImport
6567// RUN: %target-swift-frontend -emit-module %t/InternalDep.swift -o %t -I %t \
6668// RUN: -enable-experimental-feature AccessLevelOnImport
@@ -110,6 +112,7 @@ import PrivateDep
110112// RUN: %target-swift-frontend -typecheck %t/TestableClientOfPublic.swift -I %t \
111113// RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-DEP %s
112114// RUN: %target-swift-frontend -typecheck %t/TestableClientOfNonPublic.swift -I %t \
115+ // RUN: -package-name pkg \
113116// RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-DEP %s
114117
115118/// In the case of a testable of a module reexporting another Swift module,
@@ -132,6 +135,7 @@ import PrivateDep
132135/// Fail if the transitive dependency is missing.
133136// RUN: rm %t/HiddenDep.swiftmodule
134137// RUN: %target-swift-frontend -typecheck %t/TestableClientOfNonPublic.swift -I %t \
138+ // RUN: -package-name pkg \
135139// RUN: -verify -show-diagnostics-after-fatal
136140
137141/// In a multi-file scenario, we try and fail to load the transitive dependency
0 commit comments