Files
swift-mirror/test/Runtime/linux-fatal-backtrace.swift
Bob Wilson 00e6bb8690 Reenable Runtime/linux-fatal-backtrace.swift test
The best guess so far is that the failure that caused the test to be
disabled was a consequence of not running a clean build to regenerate
the lit.site.cfg file so that the "REQUIRES: lldb" check gave the wrong
answer. rdar://problem/33718631
2017-11-14 11:33:22 -08:00

23 lines
564 B
Swift

// RUN: rm -rf %t
// RUN: mkdir -p %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()