Skip to content

Commit 84bf144

Browse files
committed
[test] Update expected error message
1 parent a051b82 commit 84bf144

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/Interpreter/bridged_casts_folding.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,14 @@ Tests.test("NSDictionary -> Swift (Dictionary). Crashing Test Cases") {
300300
expectNil(dictOpt)
301301
}
302302

303-
// NOTE: This is preserving current behavior. We should probably have a better
304-
// error here like in the other crashes.
305-
//
306303
// CHECK-LABEL: [ RUN ] BridgedCastFolding.NSDictionary -> Swift (Dictionary). Crashing Test Cases
307-
// CHECK: stderr>>> OK: saw expected "crashed: sigill"
304+
// CHECK: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
305+
// CHECK: stderr>>> OK: saw expected "crashed: sigabrt"
308306
// CHECK: [ OK ] BridgedCastFolding.NSDictionary -> Swift (Dictionary). Crashing Test Cases
309307
//
310308
// CHECK-OPT-LABEL: [ RUN ] BridgedCastFolding.NSDictionary -> Swift (Dictionary). Crashing Test Cases
311-
// CHECK-OPT: stderr>>> OK: saw expected "crashed: sigill"
309+
// CHECK-OPT: stderr>>> Could not cast value of type '{{.*}}' (0x{{[0-9a-f]*}}) to 'NSNumber' (0x{{[0-9a-f]*}}).
310+
// CHECK-OPT: stderr>>> OK: saw expected "crashed: sigabrt"
312311
// CHECK-OPT: [ OK ] BridgedCastFolding.NSDictionary -> Swift (Dictionary). Crashing Test Cases
313312
expectCrashLater()
314313
do {

0 commit comments

Comments
 (0)