Skip to content

Commit 87c7bca

Browse files
committed
[Backtracing][Tests] Tweak the new fatalError test slightly.
The test needs tweaking a little to work on Linux and macOS. rdar://116112040
1 parent 2b575a6 commit 87c7bca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Backtracing/FatalError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ struct FatalError {
3939

4040
// CHECK: *** Program crashed: Illegal instruction at 0x{{[0-9a-f]+}} ***
4141

42-
// CHECK: Thread 0 "FatalError" crashed:
42+
// CHECK: Thread 0 {{(".*" )?}}crashed:
4343

44-
// CHECK: 0 0x{{[0-9a-f]+}} _assertionFailure(_:_:file:line:flags:) + {{[0-9]+}} in libswiftCore.so at {{.*}}/AssertCommon.swift:{{[0-9]+}}:{{[0-9]+}}
44+
// CHECK: 0 0x{{[0-9a-f]+}} _assertionFailure(_:_:file:line:flags:) + {{[0-9]+}} in libswiftCore.{{so|dylib}}
4545
// CHECK-NEXT: 1 [ra] 0x{{[0-9a-f]+}} level5() + {{[0-9]+}} in FatalError at {{.*}}/FatalError.swift:30:3
4646
// CHECK-NEXT: 2 [ra] 0x{{[0-9a-f]+}} level4() + {{[0-9]+}} in FatalError at {{.*}}/FatalError.swift:26:3
4747
// CHECK-NEXT: 3 [ra] 0x{{[0-9a-f]+}} level3() + {{[0-9]+}} in FatalError at {{.*}}/FatalError.swift:22:3

0 commit comments

Comments
 (0)