mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 03:06:04 +00:00

Add FORCE_LLD_DIAGNOSTICS_CRASH inspired by the existing FORCE_CLANG_DIAGNOSTICS_CRASH. This is particularly useful for people customizing LLD as they may want to modify the crash reporting behavior. Differential Revision: https://reviews.llvm.org/D128195
11 lines
393 B
Plaintext
11 lines
393 B
Plaintext
# REQUIRES: backtrace
|
|
|
|
## Test the diagnostics produced when LLD crashes.
|
|
|
|
# RUN: env FORCE_LLD_DIAGNOSTICS_CRASH=1 not --crash ld.lld -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
## Check the crash text has the correct structure.
|
|
# CHECK: crashing due to environment variable FORCE_LLD_DIAGNOSTICS_CRASH
|
|
# CHECK: PLEASE submit a bug report to {{.*}} and include the crash backtrace
|
|
# CHECK: Stack dump:
|