Skip to content

Commit 1b13705

Browse files
authored
Merge pull request #25640 from apple/5.1-update-parseableinterface-tests
2 parents 6b97e8b + ec25db9 commit 1b13705

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/ParseableInterface/ModuleCache/RebuildRemarks/out-of-date-cached-module.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// RUN: %target-swift-frontend -typecheck %s -I %t/Build -module-cache-path %t/ModuleCache
1212

1313
// 4. Touch the interface so the cached module is no longer up-to-date
14-
// RUN: touch %t/Build/TestModule.swiftinterface
14+
// RUN: %{python} %S/../Inputs/make-old.py %t/Build/TestModule.swiftinterface
1515

1616
// 5. Try to import the now out-of-date cached module
1717
// RUN: %target-swift-frontend -typecheck -verify %s -I %t/Build -Rmodule-interface-rebuild -module-cache-path %t/ModuleCache

test/ParseableInterface/ModuleCache/RebuildRemarks/out-of-date-compiled-module.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// RUN: %target-swift-frontend -compile-module-from-interface -o %t/Build/TestModule.swiftmodule %t/Build/TestModule.swiftinterface
1212

1313
// 4. Touch the interface so the module is no longer up-to-date
14-
// RUN: touch %t/Build/TestModule.swiftinterface
14+
// RUN: %{python} %S/../Inputs/make-old.py %t/Build/TestModule.swiftinterface
1515

1616
// 5. Try to import the out-of-date compiled module
1717
// RUN: %target-swift-frontend -typecheck -verify %s -I %t/Build -Rmodule-interface-rebuild -module-cache-path %t/ModuleCache

test/ParseableInterface/ModuleCache/RebuildRemarks/rebuild-transitive-import.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// RUN: %target-swift-frontend -compile-module-from-interface -o %t/Build/InnerModule.swiftmodule %t/Build/InnerModule.swiftinterface
1010

1111
// 3. Touch the interface so the module becomes out of date.
12-
// RUN: touch %t/Build/InnerModule.swiftinterface
12+
// RUN: %{python} %S/../Inputs/make-old.py %t/Build/InnerModule.swiftinterface
1313

1414
// 4. Create a module called OuterModule that imports InnerModule, and put its interface into the build dir.
1515
// RUN: echo 'import InnerModule' | %target-swift-frontend - -emit-module -o %t/Build/OuterModule.swiftmodule -module-name OuterModule -I %t/Build

test/ParseableInterface/ModuleCache/prebuilt-module-cache-forwarding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// RUN: %{python} %S/Inputs/check-is-forwarding-module.py %t/MCP/Lib-*.swiftmodule
1414

1515
// Now invalidate a dependency of the prebuilt module, and make sure the forwarding file is replaced with a real module.
16-
// RUN: touch %t/Lib.swiftinterface
16+
// RUN: %{python} %S/Inputs/make-old.py %t/Lib.swiftinterface
1717
// RUN: not %target-swift-frontend -typecheck -parse-stdlib -module-cache-path %t/MCP -sdk %S/Inputs -I %S/Inputs/prebuilt-module-cache/ -prebuilt-module-cache-path %t/prebuilt-cache %s 2>&1 | %FileCheck -check-prefix=FROM-INTERFACE %s
1818

1919
// Delete the cached module we just created, and create the forwarding module again

0 commit comments

Comments
 (0)