Skip to content

Commit 2fa625e

Browse files
committed
[embedded] Adjust IR expectations in traps-fatalerror-ir.swift and traps-multiple-preconditions-ir.swift tests
1 parent 555ca3b commit 2fa625e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/embedded/traps-fatalerror-ir.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public func test() {
1414

1515
// CHECK-MESSAGE: define {{.*}}void @"$s4main4testyyF"(){{.*}} {
1616
// CHECK-MESSAGE: entry:
17-
// CHECK-MESSAGE: {{.*}}call {{.*}}void @"$ss17_assertionFailure__
17+
// CHECK-MESSAGE: {{.*}}call {{.*}}void @"${{(ss17_assertionFailure__|ss31_embeddedReportFatalErrorInFile)}}
1818
// CHECK-MESSAGE-SAME: Fatal error
1919
// CHECK-MESSAGE-SAME: task failed successfully
2020
// CHECK-MESSAGE-SAME: traps-fatalerror-ir.swift

test/embedded/traps-multiple-preconditions-ir.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ public func test(i: Int) {
2222

2323
// "Non-production builds" - We expect 4 separate _assertionFailure() calls with different values
2424
// CHECK-MESSAGE: define {{.*}}void @"$s4main4test1iySi_tF"(i64 %0) {{.*}}{
25-
// CHECK-MESSAGE: call {{.*}}@"$ss17_assertionFailure
25+
// CHECK-MESSAGE: call {{.*}}@"${{(ss17_assertionFailure__|ss31_embeddedReportFatalErrorInFile)}}
2626
// CHECK-MESSAGE: unreachable
27-
// CHECK-MESSAGE: call {{.*}}@"$ss17_assertionFailure
27+
// CHECK-MESSAGE: call {{.*}}@"${{(ss17_assertionFailure__|ss31_embeddedReportFatalErrorInFile)}}
2828
// CHECK-MESSAGE: unreachable
29-
// CHECK-MESSAGE: call {{.*}}@"$ss17_assertionFailure
29+
// CHECK-MESSAGE: call {{.*}}@"${{(ss17_assertionFailure__|ss31_embeddedReportFatalErrorInFile)}}
3030
// CHECK-MESSAGE: unreachable
31-
// CHECK-MESSAGE: call {{.*}}@"$ss17_assertionFailure
31+
// CHECK-MESSAGE: call {{.*}}@"${{(ss17_assertionFailure__|ss31_embeddedReportFatalErrorInFile)}}
3232
// CHECK-MESSAGE: unreachable
3333
// CHECK-MESSAGE: }
3434

0 commit comments

Comments
 (0)