[llvm] 638b257 - Fix test added in 95abdeb to set environment variables in a way that works on both Windows and linux.
Douglas Yung via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 17:33:09 PST 2022
Author: Douglas Yung
Date: 2022-12-20T17:31:01-08:00
New Revision: 638b25711540ff7897750ab07592b3d168e65aca
URL: https://github.com/llvm/llvm-project/commit/638b25711540ff7897750ab07592b3d168e65aca
DIFF: https://github.com/llvm/llvm-project/commit/638b25711540ff7897750ab07592b3d168e65aca.diff
LOG: Fix test added in 95abdeb to set environment variables in a way that works on both Windows and linux.
This should fix the test failure on Windows bots such as https://lab.llvm.org/buildbot/#/builders/216/builds/14829.
Added:
Modified:
llvm/test/tools/llvm-reduce/disable-crash-reports.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-reduce/disable-crash-reports.test b/llvm/test/tools/llvm-reduce/disable-crash-reports.test
index af0c73a239b7a..6f9a55b04d7f7 100644
--- a/llvm/test/tools/llvm-reduce/disable-crash-reports.test
+++ b/llvm/test/tools/llvm-reduce/disable-crash-reports.test
@@ -1,12 +1,12 @@
# RUN: llvm-reduce --delta-passes=global-variables --test %python --test-arg %p/Inputs/test-crash-vars.py %p/Inputs/test-output-format.ll 2>&1 | FileCheck -check-prefix=INTERESTING %s
-# RUN: LLVM_DISABLE_CRASH_REPORT=0 llvm-reduce --delta-passes=global-variables --test %python --test-arg %p/Inputs/test-crash-vars.py %p/Inputs/test-output-format.ll 2>&1 | FileCheck -check-prefix=INTERESTING %s
+# RUN: env LLVM_DISABLE_CRASH_REPORT=0 llvm-reduce --delta-passes=global-variables --test %python --test-arg %p/Inputs/test-crash-vars.py %p/Inputs/test-output-format.ll 2>&1 | FileCheck -check-prefix=INTERESTING %s
# RUN: not llvm-reduce --preserve-debug-environment --delta-passes=global-variables --test %python --test-arg %p/Inputs/test-crash-vars.py %p/Inputs/test-output-format.ll 2>&1 | FileCheck -check-prefix=NOTINTERESTING %s
-# RUN: LLVM_DISABLE_CRASH_REPORT=0 not llvm-reduce --preserve-debug-environment --delta-passes=global-variables --test %python --test-arg %p/Inputs/test-crash-vars.py %p/Inputs/test-output-format.ll 2>&1 | FileCheck -check-prefix=NOTINTERESTING %s
+# RUN: env LLVM_DISABLE_CRASH_REPORT=0 not llvm-reduce --preserve-debug-environment --delta-passes=global-variables --test %python --test-arg %p/Inputs/test-crash-vars.py %p/Inputs/test-output-format.ll 2>&1 | FileCheck -check-prefix=NOTINTERESTING %s
-# RUN: LLVM_DISABLE_CRASH_REPORT=1 LLVM_DISABLE_SYMBOLIZATION=1 llvm-reduce --preserve-debug-environment --delta-passes=global-variables --test %python --test-arg %p/Inputs/test-crash-vars.py %p/Inputs/test-output-format.ll 2>&1 | FileCheck -check-prefix=INTERESTING %s
+# RUN: env LLVM_DISABLE_CRASH_REPORT=1 LLVM_DISABLE_SYMBOLIZATION=1 llvm-reduce --preserve-debug-environment --delta-passes=global-variables --test %python --test-arg %p/Inputs/test-crash-vars.py %p/Inputs/test-output-format.ll 2>&1 | FileCheck -check-prefix=INTERESTING %s
INTERESTING: Done reducing! Reduced testcase:
NOTINTERESTING: Input isn't interesting! Verify interesting-ness test
More information about the llvm-commits
mailing list