aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-reduce/Inputs/test-crash-vars.py
blob: 2d239a6e463438277274e6f5332066cf61420010 (plain)
1
2
3
4
5
6
7
8
9
import os
import sys

disable_crash_report = os.getenv("LLVM_DISABLE_CRASH_REPORT")
disable_symbolization = os.getenv("LLVM_DISABLE_SYMBOLIZATION")

# Test that this is an explicitly set true value. If we preserve the
# debug environment a pre-set explicit 0 should work.
sys.exit(disable_crash_report != "1" or disable_symbolization != "1")