File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
// RUN: echo 'import Foo' > %t/file-01.swift
11
11
// RUN: echo 'import Foo' > %t/file-02.swift
12
12
// RUN: echo 'import Foo' > %t/file-03.swift
13
- // RUN: %target-swiftc_driver -j20 %t/main.swift %t/file-01.swift %t/file-02.swift %t/file-03.swift -I %t/sdk -Xfrontend -Rmodule-interface-rebuild -module-cache-path %t/module-cache &> %t/result.txt
14
- // RUN: %FileCheck %s -check-prefix=CHECK-REBUILD < %t/result.txt
13
+ // RUN: %target-swiftc_driver -j20 %t/main.swift %t/file-01.swift %t/file-02.swift %t/file-03.swift -I %t/sdk -Xfrontend -Rmodule-interface-rebuild -module-cache-path %t/module-cache &> %t/result-with-lock.txt
15
14
16
15
/// Checking that the compiler rebuilds the same module more than once can
17
16
/// fail depending on how fast the jobs are executed. Just make sure the
18
17
/// compiler accepts the -disable-interface-lock flag.
19
- // RUN: %target-swiftc_driver -j20 %t/main.swift %t/file-01.swift %t/file-02.swift %t/file-03.swift -I %t/sdk -Xfrontend -Rmodule-interface-rebuild -Xfrontend -disable-interface-lock -module-cache-path %t/module-cache-no-lock &> %t/result.txt
20
- // RUN: %FileCheck %s -check-prefix=CHECK-REBUILD-NO-LOCK < %t/result.txt
18
+ // RUN: %target-swiftc_driver -j20 %t/main.swift %t/file-01.swift %t/file-02.swift %t/file-03.swift -I %t/sdk -Xfrontend -Rmodule-interface-rebuild -Xfrontend -disable-interface-lock -module-cache-path %t/module-cache-no-lock &> %t/result-no-lock.txt
21
19
22
- // Reset the permissions
20
+ /// Reset the permissions before running the tests likely to fail.
23
21
// RUN: chmod a+w %t/sdk
24
22
25
23
// Ensure we only build Foo module once from the interface
24
+ // RUN: %FileCheck %s -check-prefix=CHECK-REBUILD < %t/result-with-lock.txt
26
25
// CHECK-REBUILD: rebuilding module 'Foo' from interface
27
26
// CHECK-REBUILD-NOT: rebuilding module 'Foo' from interface
28
27
// CHECK-REBUILD-NOT: building module interface without lock file
29
28
29
+ // RUN: %FileCheck %s -check-prefix=CHECK-REBUILD-NO-LOCK < %t/result-no-lock.txt
30
30
// CHECK-REBUILD-NO-LOCK: rebuilding module 'Foo' from interface
You can’t perform that action at this time.
0 commit comments