Skip to content

Commit ae1bc76

Browse files
committed
[test] bridged_casts_folding: make tests more resilient against changes in class cluster impl details
1 parent 84bf144 commit ae1bc76

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/Interpreter/bridged_casts_folding.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Tests.test("NSString => Array<Int>. Crashing test case") {
4949
}
5050

5151
// CHECK-LABEL: [ RUN ] BridgedCastFolding.NSString => Array<Int>. Crashing test case
52-
// CHECK: stderr>>> Could not cast value of type '__NSCFString' (0x{{[0-9a-f]*}}) to 'NSArray' (0x{{[0-9a-f]*}}).
52+
// CHECK: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSArray' (0x{{[0-9a-f]*}}).
5353
// CHECK: stderr>>> OK: saw expected "crashed: sigabrt"
5454
// CHECK: [ OK ] BridgedCastFolding.NSString => Array<Int>. Crashing test case
5555

@@ -121,7 +121,7 @@ Tests.test("NSNumber (Int) -> String. Crashing test.") {
121121
}
122122

123123
// CHECK-LABEL: [ RUN ] BridgedCastFolding.NSNumber (Int) -> String. Crashing test.
124-
// CHECK: stderr>>> Could not cast value of type '__NSCFNumber' (0x{{[0-9a-f]*}}) to 'NSString' (0x{{[0-9a-f]*}}).
124+
// CHECK: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSString' (0x{{[0-9a-f]*}}).
125125
// CHECK: stderr>>> OK: saw expected "crashed: sigabrt"
126126
// CHECK: [ OK ] BridgedCastFolding.NSNumber (Int) -> String. Crashing test.
127127

@@ -186,12 +186,12 @@ Tests.test("NSArray (String) -> Swift Array (Int). Crashing.") {
186186
}
187187

188188
// CHECK-LABEL: [ RUN ] BridgedCastFolding.NSArray (String) -> Swift Array (Int). Crashing.
189-
// CHECK: stderr>>> Could not cast value of type '__NSCFString' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
189+
// CHECK: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
190190
// CHECK: stderr>>> OK: saw expected "crashed: sigabrt"
191191
// CHECK: [ OK ] BridgedCastFolding.NSArray (String) -> Swift Array (Int). Crashing.
192192

193193
// CHECK-OPT-LABEL: [ RUN ] BridgedCastFolding.NSArray (String) -> Swift Array (Int). Crashing.
194-
// CHECK-OPT: stderr>>> Could not cast value of type '__NSCFString' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
194+
// CHECK-OPT: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
195195
// CHECK-OPT: stderr>>> OK: saw expected "crashed: sigabrt"
196196
// CHECK-OPT: [ OK ] BridgedCastFolding.NSArray (String) -> Swift Array (Int). Crashing.
197197
expectCrashLater()
@@ -208,11 +208,11 @@ Tests.test("NSArray (String) -> Swift Array (Double). Crashing.") {
208208
}
209209

210210
// CHECK-LABEL: [ RUN ] BridgedCastFolding.NSArray (String) -> Swift Array (Double). Crashing.
211-
// CHECK: stderr>>> Could not cast value of type '__NSCFString' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
211+
// CHECK: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
212212
// CHECK: stderr>>> OK: saw expected "crashed: sigabrt"
213213
// CHECK: [ OK ] BridgedCastFolding.NSArray (String) -> Swift Array (Double). Crashing.
214214
// CHECK-OPT-LABEL: [ RUN ] BridgedCastFolding.NSArray (String) -> Swift Array (Double). Crashing.
215-
// CHECK-OPT: stderr>>> Could not cast value of type '__NSCFString' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
215+
// CHECK-OPT: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
216216
// CHECK-OPT: stderr>>> OK: saw expected "crashed: sigabrt"
217217
// CHECK-OPT: [ OK ] BridgedCastFolding.NSArray (String) -> Swift Array (Double). Crashing.
218218
expectCrashLater()
@@ -229,12 +229,12 @@ Tests.test("NSArray (Int) -> Swift Array (String). Crashing.") {
229229
}
230230

231231
// CHECK-LABEL: [ RUN ] BridgedCastFolding.NSArray (Int) -> Swift Array (String). Crashing.
232-
// CHECK: stderr>>> Could not cast value of type '__NSCFNumber' (0x{{[0-9a-f]*}}) to 'NSString' (0x{{[0-9a-f]*}}).
232+
// CHECK: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSString' (0x{{[0-9a-f]*}}).
233233
// CHECK: stderr>>> OK: saw expected "crashed: sigabrt"
234234
// CHECK: [ OK ] BridgedCastFolding.NSArray (Int) -> Swift Array (String). Crashing.
235235

236236
// CHECK-OPT-LABEL: [ RUN ] BridgedCastFolding.NSArray (Int) -> Swift Array (String). Crashing.
237-
// CHECK-OPT: stderr>>> Could not cast value of type '__NSCFNumber' (0x{{[0-9a-f]*}}) to 'NSString' (0x{{[0-9a-f]*}}).
237+
// CHECK-OPT: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSString' (0x{{[0-9a-f]*}}).
238238
// CHECK-OPT: stderr>>> OK: saw expected "crashed: sigabrt"
239239
// CHECK-OPT: [ OK ] BridgedCastFolding.NSArray (Int) -> Swift Array (String). Crashing.
240240
expectCrashLater()
@@ -384,7 +384,7 @@ Tests.test("String -> NSNumber. Crashing Test Case") {
384384
}
385385

386386
// CHECK-LABEL: [ RUN ] BridgedCastFolding.String -> NSNumber. Crashing Test Case
387-
// CHECK: stderr>>> Could not cast value of type '__NSCFString' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
387+
// CHECK: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
388388
// CHECK: stderr>>> OK: saw expected "crashed: sigabrt"
389389
// CHECK: [ OK ] BridgedCastFolding.String -> NSNumber. Crashing Test Case
390390

0 commit comments

Comments
 (0)