mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This test broke when we switched to the swift-4.2-branch of Clang/LLVM. It seems to be a problem with LLDB's CreateTargetWithFileAndArch() API (rdar://problem/39960149). In the meantime, since this script does not really need to specify the architecture, we can work around the problem by using CreateTarget(). That's simpler anyway. rdar://problem/38181372
22 lines
555 B
Swift
22 lines
555 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift %s -o %t/a.out
|
|
// RUN: not --crash %t/a.out 2>&1 | PYTHONPATH=%lldb-python-path %utils/symbolicate-linux-fatal %t/a.out - | %utils/backtrace-check -u
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: OS=linux-gnu
|
|
// REQUIRES: lldb
|
|
|
|
// Backtraces are not emitted when optimizations are enabled. This test can not
|
|
// run when optimizations are enabled.
|
|
// REQUIRES: swift_test_mode_optimize_none
|
|
|
|
func funcB() {
|
|
fatalError("linux-fatal-backtrace");
|
|
}
|
|
|
|
func funcA() {
|
|
funcB();
|
|
}
|
|
|
|
print("bla")
|
|
funcA()
|