mirror of
https://github.com/apple/swift.git
synced 2026-10-24 20:15:56 +02:00
rdar://181843264 relates on this, we had disabled all unit tests for remote running for any tests using preset=friendly on the backtracer anywhere in the test. This is because friendly needs access to source code files which are not present when doing remote run. Split unit tests into a bit that can be run remotely like most tests, and a bit that uses preset=friendly that can't.
29 lines
1.6 KiB
Plaintext
29 lines
1.6 KiB
Plaintext
// RUN: %empty-directory(%t)
|
||
// RUN: %target-build-swift %S/Inputs/CrashWithThunk.swift -parse-as-library -Onone %swift-debug-flags -o %t/CrashWithThunk.exe
|
||
// RUN: %target-codesign %t/CrashWithThunk.exe
|
||
// RUN: ! env %env-SWIFT_BACKTRACE=enable=yes,cache=no %target-run %t/CrashWithThunk.exe %t/CrashWithThunk.exe.dSYM > %t/CrashWithThunk.out 2>&1
|
||
// RUN: %FileCheck --ignore-case %s < %t/CrashWithThunk.out
|
||
|
||
// UNSUPPORTED: use_os_stdlib
|
||
// UNSUPPORTED: back_deployment_runtime
|
||
// UNSUPPORTED: asan
|
||
// REQUIRES: executable_test
|
||
// REQUIRES: backtracing
|
||
// REQUIRES: OS=macosx || OS=linux-gnu || OS=windows-msvc
|
||
|
||
// CHECK: *** Program crashed: {{(Bad pointer dereference|Access violation)}} at 0x{{0+}}4 ***
|
||
|
||
// CHECK: Thread 0 {{(".*" )?}}crashed:
|
||
|
||
// CHECK: 0 0x{{[0-9a-f]+}} crash() + {{[0-9]+}} in CrashWithThunk.exe at {{.*[\\/]}}CrashWithThunk.swift:8:15
|
||
// CHECK-NEXT: 1 [ra] [thunk] 0x{{[0-9a-f]+}} thunk for @escaping @callee_guaranteed () -> () + {{[0-9]+}} in CrashWithThunk.exe at {{.*[\\/]}}<compiler-generated>
|
||
// CHECK-NEXT: 2 [ra] 0x{{[0-9a-f]+}} static CrashWithThunk.main() + {{[0-9]+}} in CrashWithThunk.exe at {{.*[\\/]}}CrashWithThunk.swift:16:9
|
||
// CHECK-NEXT: 3 [ra] [system] 0x{{[0-9a-f]+}} static CrashWithThunk.$main() + {{[0-9]+}} in CrashWithThunk.exe at {{.*[\\/]}}<compiler-generated>
|
||
// CHECK-NEXT: 4 [ra] [system] 0x{{[0-9a-f]+}} main + {{[0-9]+}} in CrashWithThunk.exe at {{.*[\\/]}}CrashWithThunk.swift
|
||
|
||
// CHECK: Registers:
|
||
|
||
// CHECK: Images ({{[0-9]+}} omitted):
|
||
|
||
// CHECK: {{0x[0-9a-f]+}}–{{0x[0-9a-f]+}}{{ +}}{{[0-9a-f]+|<no build ID>}}{{ +}}CrashWithThunk.exe{{ +}}{{.*[\\/]}}CrashWithThunk.exe
|