Disable the crash reporter when running lit tests.
[oota-llvm.git] / lib / Support / Windows / Signals.inc
index 3a7e90b38e21cedb12826e655124ac3afdbfea1b..38308f6abd851a3722e76bc27c139b2182c8eb39 100644 (file)
@@ -239,7 +239,7 @@ static void RegisterHandler() {
   SetConsoleCtrlHandler(LLVMConsoleCtrlHandler, TRUE);
 
   // Environment variable to disable any kind of crash dialog.
-  if (getenv("LLVM_DISABLE_CRT_DEBUG")) {
+  if (getenv("LLVM_DISABLE_CRASH_REPORT")) {
 #ifdef _MSC_VER
     _CrtSetReportHook(CRTReportHook);
 #endif