File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
test/ParseableInterface/ModuleCache Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
// RUN: %target-swift-frontend -typecheck %s -I %t/Build -module-cache-path %t/ModuleCache
12
12
13
13
// 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
15
15
16
16
// 5. Try to import the now out-of-date cached module
17
17
// RUN: %target-swift-frontend -typecheck -verify %s -I %t/Build -Rmodule-interface-rebuild -module-cache-path %t/ModuleCache
Original file line number Diff line number Diff line change 11
11
// RUN: %target-swift-frontend -compile-module-from-interface -o %t/Build/TestModule.swiftmodule %t/Build/TestModule.swiftinterface
12
12
13
13
// 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
15
15
16
16
// 5. Try to import the out-of-date compiled module
17
17
// RUN: %target-swift-frontend -typecheck -verify %s -I %t/Build -Rmodule-interface-rebuild -module-cache-path %t/ModuleCache
Original file line number Diff line number Diff line change 9
9
// RUN: %target-swift-frontend -compile-module-from-interface -o %t/Build/InnerModule.swiftmodule %t/Build/InnerModule.swiftinterface
10
10
11
11
// 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
13
13
14
14
// 4. Create a module called OuterModule that imports InnerModule, and put its interface into the build dir.
15
15
// RUN: echo 'import InnerModule' | %target-swift-frontend - -emit-module -o %t/Build/OuterModule.swiftmodule -module-name OuterModule -I %t/Build
Original file line number Diff line number Diff line change 13
13
// RUN: %{python} %S/Inputs/check-is-forwarding-module.py %t/MCP/Lib-*.swiftmodule
14
14
15
15
// 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
17
17
// 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
18
18
19
19
// Delete the cached module we just created, and create the forwarding module again
You can’t perform that action at this time.
0 commit comments