Skip to content

Commit 10d86c9

Browse files
jketemaPaolo Tranquilli
authored andcommitted
Swift: Disable parts of tests that crash with Swift 6.1
1 parent 9a21b0d commit 10d86c9

10 files changed

+13
-27
lines changed

swift/ql/test/extractor-tests/generated/decl/ParamDecl/ParamDecl.expected

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,3 @@
5757
| param_decls.swift:41:10:41:26 | projectedValue | getModule: | file://:0:0:0:0 | param_decls | getNumberOfMembers: | 0 | getInterfaceType: | Bool | getNumberOfAccessors: | 0 | getName: | projectedValue | getType: | Bool | hasAttachedPropertyWrapperType: | no | hasParentPattern: | no | hasParentInitializer: | no | hasPropertyWrapperBackingVarBinding: | no | hasPropertyWrapperBackingVar: | no | hasPropertyWrapperProjectionVarBinding: | no | hasPropertyWrapperProjectionVar: | no | isInout: | no | hasPropertyWrapperLocalWrappedVarBinding: | no | hasPropertyWrapperLocalWrappedVar: | no |
5858
| param_decls.swift:48:18:48:22 | p1 | getModule: | file://:0:0:0:0 | param_decls | getNumberOfMembers: | 0 | getInterfaceType: | Int | getNumberOfAccessors: | 0 | getName: | p1 | getType: | Int | hasAttachedPropertyWrapperType: | yes | hasParentPattern: | no | hasParentInitializer: | no | hasPropertyWrapperBackingVarBinding: | yes | hasPropertyWrapperBackingVar: | yes | hasPropertyWrapperProjectionVarBinding: | no | hasPropertyWrapperProjectionVar: | no | isInout: | no | hasPropertyWrapperLocalWrappedVarBinding: | no | hasPropertyWrapperLocalWrappedVar: | yes |
5959
| param_decls.swift:49:26:49:30 | p2 | getModule: | file://:0:0:0:0 | param_decls | getNumberOfMembers: | 0 | getInterfaceType: | Int | getNumberOfAccessors: | 0 | getName: | p2 | getType: | Int | hasAttachedPropertyWrapperType: | yes | hasParentPattern: | no | hasParentInitializer: | no | hasPropertyWrapperBackingVarBinding: | yes | hasPropertyWrapperBackingVar: | yes | hasPropertyWrapperProjectionVarBinding: | no | hasPropertyWrapperProjectionVar: | no | isInout: | no | hasPropertyWrapperLocalWrappedVarBinding: | no | hasPropertyWrapperLocalWrappedVar: | yes |
60-
| param_decls.swift:50:31:50:31 | value | getModule: | file://:0:0:0:0 | param_decls | getNumberOfMembers: | 0 | getInterfaceType: | Bool | getNumberOfAccessors: | 0 | getName: | value | getType: | Bool | hasAttachedPropertyWrapperType: | no | hasParentPattern: | no | hasParentInitializer: | no | hasPropertyWrapperBackingVarBinding: | no | hasPropertyWrapperBackingVar: | no | hasPropertyWrapperProjectionVarBinding: | no | hasPropertyWrapperProjectionVar: | no | isInout: | no | hasPropertyWrapperLocalWrappedVarBinding: | no | hasPropertyWrapperLocalWrappedVar: | no |
61-
| param_decls.swift:50:31:50:35 | p3 | getModule: | file://:0:0:0:0 | param_decls | getNumberOfMembers: | 0 | getInterfaceType: | Int | getNumberOfAccessors: | 0 | getName: | p3 | getType: | Int | hasAttachedPropertyWrapperType: | yes | hasParentPattern: | no | hasParentInitializer: | no | hasPropertyWrapperBackingVarBinding: | no | hasPropertyWrapperBackingVar: | yes | hasPropertyWrapperProjectionVarBinding: | yes | hasPropertyWrapperProjectionVar: | yes | isInout: | no | hasPropertyWrapperLocalWrappedVarBinding: | no | hasPropertyWrapperLocalWrappedVar: | yes |
62-
| param_decls.swift:51:38:51:38 | value | getModule: | file://:0:0:0:0 | param_decls | getNumberOfMembers: | 0 | getInterfaceType: | Bool | getNumberOfAccessors: | 0 | getName: | value | getType: | Bool | hasAttachedPropertyWrapperType: | no | hasParentPattern: | no | hasParentInitializer: | no | hasPropertyWrapperBackingVarBinding: | no | hasPropertyWrapperBackingVar: | no | hasPropertyWrapperProjectionVarBinding: | no | hasPropertyWrapperProjectionVar: | no | isInout: | no | hasPropertyWrapperLocalWrappedVarBinding: | no | hasPropertyWrapperLocalWrappedVar: | no |
63-
| param_decls.swift:51:38:51:42 | p4 | getModule: | file://:0:0:0:0 | param_decls | getNumberOfMembers: | 0 | getInterfaceType: | Int | getNumberOfAccessors: | 0 | getName: | p4 | getType: | Int | hasAttachedPropertyWrapperType: | yes | hasParentPattern: | no | hasParentInitializer: | no | hasPropertyWrapperBackingVarBinding: | no | hasPropertyWrapperBackingVar: | yes | hasPropertyWrapperProjectionVarBinding: | yes | hasPropertyWrapperProjectionVar: | yes | isInout: | no | hasPropertyWrapperLocalWrappedVarBinding: | no | hasPropertyWrapperLocalWrappedVar: | yes |
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
| param_decls.swift:48:18:48:22 | p1 | Wrapper |
22
| param_decls.swift:49:26:49:30 | p2 | WrapperWithInit |
3-
| param_decls.swift:50:31:50:35 | p3 | WrapperWithProjected |
4-
| param_decls.swift:51:38:51:42 | p4 | WrapperWithProjectedAndInit |
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
| param_decls.swift:48:18:48:22 | p1 | param_decls.swift:48:18:48:18 | _p1 |
22
| param_decls.swift:49:26:49:30 | p2 | param_decls.swift:49:26:49:26 | _p2 |
3-
| param_decls.swift:50:31:50:35 | p3 | file://:0:0:0:0 | _p3 |
4-
| param_decls.swift:51:38:51:42 | p4 | file://:0:0:0:0 | _p4 |
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
| param_decls.swift:48:18:48:22 | p1 | param_decls.swift:48:18:48:18 | p1 |
22
| param_decls.swift:49:26:49:30 | p2 | param_decls.swift:49:26:49:26 | p2 |
3-
| param_decls.swift:50:31:50:35 | p3 | param_decls.swift:50:31:50:31 | p3 |
4-
| param_decls.swift:51:38:51:42 | p4 | param_decls.swift:51:38:51:38 | p4 |
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
| param_decls.swift:50:31:50:35 | p3 | param_decls.swift:50:31:50:31 | $p3 |
2-
| param_decls.swift:51:38:51:42 | p4 | param_decls.swift:51:38:51:38 | $p4 |
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
| param_decls.swift:50:31:50:35 | p3 | file://:0:0:0:0 | var ... = ... |
2-
| param_decls.swift:51:38:51:42 | p4 | file://:0:0:0:0 | var ... = ... |

swift/ql/test/extractor-tests/generated/decl/ParamDecl/param_decls.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ func closures() {
4747
func f2(
4848
@Wrapper p1: Int,
4949
@WrapperWithInit p2: Int,
50-
@WrapperWithProjected p3: Int,
51-
@WrapperWithProjectedAndInit p4: Int
50+
// @WrapperWithProjected p3: Int, // Disabled causes crashes with Swift 6.1
51+
// @WrapperWithProjectedAndInit p4: Int // Disabled causes crashes with Swift 6.1
5252
) {}
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
| applied_property_wrapper.swift:14:8:14:8 | AppliedPropertyWrapperExpr | hasType: | yes | getKind: | 1 | getValue: | applied_property_wrapper.swift:14:8:14:8 | 42 | getParam: | applied_property_wrapper.swift:12:19:12:22 | x |
2-
| applied_property_wrapper.swift:15:9:15:9 | AppliedPropertyWrapperExpr | hasType: | yes | getKind: | 2 | getValue: | applied_property_wrapper.swift:15:9:15:9 | true | getParam: | applied_property_wrapper.swift:12:19:12:22 | x |
3-
| file://:0:0:0:0 | AppliedPropertyWrapperExpr | hasType: | yes | getKind: | 1 | getValue: | file://:0:0:0:0 | y | getParam: | applied_property_wrapper.swift:17:26:17:29 | y |
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
| applied_property_wrapper.swift:14:8:14:8 | AppliedPropertyWrapperExpr | Wrapper |
2-
| applied_property_wrapper.swift:15:9:15:9 | AppliedPropertyWrapperExpr | Wrapper |
3-
| file://:0:0:0:0 | AppliedPropertyWrapperExpr | Wrapper |

swift/ql/test/extractor-tests/generated/expr/AppliedPropertyWrapperExpr/applied_property_wrapper.swift

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@
99
init(projectedValue: Bool) {}
1010
}
1111

12-
func foo(@Wrapper x: Int) {}
12+
func foo(
13+
// @Wrapper x: Int // Disabled causes crashes with Swift 6.1
14+
) {}
1315

14-
foo(x: 42)
15-
foo($x: true)
16+
// foo(x: 42)
17+
// foo($x: true)
1618

17-
let closure = {(@Wrapper y: Int) in return }
19+
let closure = {
20+
(
21+
// @Wrapper y: Int // Disabled causes crashes with Swift 6.1
22+
) in return
23+
}
1824

19-
closure(41)
25+
// closure(41)

0 commit comments

Comments
 (0)