@@ -4,32 +4,30 @@ func foo(value: MyStruct) {
4
4
5
5
// REQUIRES: shell
6
6
7
- // RUN: DEPCHECK_INTERVAL=2
8
- // RUN: SLEEP_TIME=3
9
-
10
7
// RUN: %empty-directory(%t)
11
8
// RUN: %empty-directory(%t/VFS)
12
9
// RUN: cp %S/Inputs/checkdeps/MyProject/LibraryExt.swift %t/VFS/
13
10
14
11
// RUN: %sourcekitd-test \
15
- // RUN: -req=global-config -req-opts=completion_check_dependency_interval=${DEPCHECK_INTERVAL} == \
12
+ // RUN: -req=global-config -req-opts=completion_check_dependency_interval=100 == \
16
13
17
14
// RUN: -shell -- echo "### Initial" == \
18
15
// RUN: -req=complete -pos=2:9 -pass-as-sourcetext -vfs-files=%t/VFS/Main.swift=@%s,%t/VFS/Library.swift=@%S/Inputs/checkdeps/MyProject/Library.swift %t/VFS/Main.swift -- -target %target-triple %t/VFS/Main.swift %t/VFS/LibraryExt.swift %t/VFS/Library.swift == \
19
16
20
17
// RUN: -shell -- echo "### Modify" == \
21
- // RUN: -shell -- sleep ${SLEEP_TIME} == \
18
+ // RUN: -req=global-config -req-opts=completion_check_dependency_interval=0 == \
22
19
// RUN: -req=complete -pos=2:9 -pass-as-sourcetext -vfs-files=%t/VFS/Main.swift=@%s,%t/VFS/Library.swift=@%S/Inputs/checkdeps/MyProject_mod/Library.swift %t/VFS/Main.swift -- -target %target-triple %t/VFS/Main.swift %t/VFS/LibraryExt.swift %t/VFS/Library.swift == \
23
20
24
21
// RUN: -shell -- echo "### Keep" == \
25
- // RUN: -shell -- sleep ${SLEEP_TIME} == \
22
+ // RUN: -req=global-config -req-opts=completion_check_dependency_interval=0 == \
26
23
// RUN: -req=complete -pos=2:9 -pass-as-sourcetext -vfs-files=%t/VFS/Main.swift=@%s,%t/VFS/Library.swift=@%S/Inputs/checkdeps/MyProject_mod/Library.swift %t/VFS/Main.swift -- -target %target-triple %t/VFS/Main.swift %t/VFS/LibraryExt.swift %t/VFS/Library.swift == \
27
24
28
- // RUN: -shell -- echo "### Rollback without sleep" == \
25
+ // RUN: -shell -- echo "### Rollback without check" == \
26
+ // RUN: -req=global-config -req-opts=completion_check_dependency_interval=100 == \
29
27
// RUN: -req=complete -pos=2:9 -pass-as-sourcetext -vfs-files=%t/VFS/Main.swift=@%s,%t/VFS/Library.swift=@%S/Inputs/checkdeps/MyProject/Library.swift %t/VFS/Main.swift -- -target %target-triple %t/VFS/Main.swift %t/VFS/LibraryExt.swift %t/VFS/Library.swift == \
30
28
31
- // RUN: -shell -- echo "### After sleep " == \
32
- // RUN: -shell -- sleep ${SLEEP_TIME} == \
29
+ // RUN: -shell -- echo "### Check " == \
30
+ // RUN: -req=global-config -req-opts=completion_check_dependency_interval=0 == \
33
31
// RUN: -req=complete -pos=2:9 -pass-as-sourcetext -vfs-files=%t/VFS/Main.swift=@%s,%t/VFS/Library.swift=@%S/Inputs/checkdeps/MyProject/Library.swift %t/VFS/Main.swift -- -target %target-triple %t/VFS/Main.swift %t/VFS/LibraryExt.swift %t/VFS/Library.swift \
34
32
35
33
// RUN: | %FileCheck %s
@@ -58,15 +56,15 @@ func foo(value: MyStruct) {
58
56
// CHECK: ]
59
57
// CHECK: key.reusingastcontext: 1
60
58
61
- // CHECK-LABEL: ### Rollback without sleep
59
+ // CHECK-LABEL: ### Rollback without check
62
60
// CHECK: key.results: [
63
61
// CHECK-DAG: key.description: "myStructMethod_mod()"
64
62
// CHECK-DAG: key.description: "extensionMethod()"
65
63
// CHECK-DAG: key.description: "self"
66
64
// CHECK: ]
67
65
// CHECK: key.reusingastcontext: 1
68
66
69
- // CHECK-LABEL: ### After sleep
67
+ // CHECK-LABEL: ### Check
70
68
// CHECK: key.results: [
71
69
// CHECK-DAG: key.description: "myStructMethod()"
72
70
// CHECK-DAG: key.description: "extensionMethod()"
0 commit comments