aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2023-03-05 16:13:23 -0400
committerMatt Arsenault <arsenm2@gmail.com>2023-03-05 16:49:59 -0400
commit2fdd55c4b01c9d6321f2f86f9d55149feb32e76c (patch)
tree00872498c9e0ff1f09403ff07db82294d4a10263
parent9fda8322243168cbfcb78c4cf80afa838473a573 (diff)
downloadllvm-2fdd55c4b01c9d6321f2f86f9d55149feb32e76c.zip
llvm-2fdd55c4b01c9d6321f2f86f9d55149feb32e76c.tar.gz
llvm-2fdd55c4b01c9d6321f2f86f9d55149feb32e76c.tar.bz2
llvm-reduce: Use explicit output file in a test
The default argument behavior test tries to make use of the default reduced.ll, so other tests should not try to write to the same file. Maybe fixes issue #61132.
-rw-r--r--llvm/test/tools/llvm-reduce/disable-crash-reports.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/tools/llvm-reduce/disable-crash-reports.test b/llvm/test/tools/llvm-reduce/disable-crash-reports.test
index 6f9a55b..4950d11 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: 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: env LLVM_DISABLE_CRASH_REPORT=0 llvm-reduce --delta-passes=global-variables -o %t --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: not llvm-reduce --preserve-debug-environment --delta-passes=global-variables -o %t --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: env LLVM_DISABLE_CRASH_REPORT=0 not llvm-reduce --preserve-debug-environment --delta-passes=global-variables -o %t --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=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 -o %t --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