[PATCH] D83432: [NFC][llvm-reduce] Don't `rm -rf` in tests, `rm -f` is enough
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 8 15:01:23 PDT 2020
lebedev.ri created this revision.
lebedev.ri added reviewers: nickdesaulniers, dblaikie, MaskRay.
lebedev.ri added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83432
Files:
llvm/test/Reduce/remove-args.ll
llvm/test/Reduce/remove-funcs.ll
llvm/test/Reduce/remove-global-vars.ll
llvm/test/Reduce/remove-metadata.ll
llvm/test/Reduce/remove-multiple-use-of-args-in-same-instruction.ll
llvm/test/Reduce/remove-multiple-use-of-global-vars-in-same-instruction.ll
llvm/test/Reduce/remove-operand-bundles.ll
Index: llvm/test/Reduce/remove-operand-bundles.ll
===================================================================
--- llvm/test/Reduce/remove-operand-bundles.ll
+++ llvm/test/Reduce/remove-operand-bundles.ll
@@ -1,6 +1,6 @@
; Test that llvm-reduce can remove uninteresting operand bundles from calls.
;
-; RUN: rm -rf %t
+; RUN: rm -f %t
; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
Index: llvm/test/Reduce/remove-multiple-use-of-global-vars-in-same-instruction.ll
===================================================================
--- llvm/test/Reduce/remove-multiple-use-of-global-vars-in-same-instruction.ll
+++ llvm/test/Reduce/remove-multiple-use-of-global-vars-in-same-instruction.ll
@@ -1,6 +1,6 @@
; Test that llvm-reduce can remove uninteresting function arguments from function definitions as well as their calls.
;
-; RUN: rm -rf %t
+; RUN: rm -f %t
; RUN: llvm-reduce --test %python --test-arg %p/Inputs/remove-multiple-use-of-global-vars-in-same-instruction.py %s -o %t
; RUN: cat %t | FileCheck -implicit-check-not=uninteresting %s
Index: llvm/test/Reduce/remove-multiple-use-of-args-in-same-instruction.ll
===================================================================
--- llvm/test/Reduce/remove-multiple-use-of-args-in-same-instruction.ll
+++ llvm/test/Reduce/remove-multiple-use-of-args-in-same-instruction.ll
@@ -1,6 +1,6 @@
; Test that llvm-reduce can remove uninteresting function arguments from function definitions as well as their calls.
;
-; RUN: rm -rf %t
+; RUN: rm -f %t
; RUN: llvm-reduce --test %python --test-arg %p/Inputs/remove-multiple-use-of-args-in-same-instruction.py %s -o %t
; RUN: cat %t | FileCheck -implicit-check-not=uninteresting %s
Index: llvm/test/Reduce/remove-metadata.ll
===================================================================
--- llvm/test/Reduce/remove-metadata.ll
+++ llvm/test/Reduce/remove-metadata.ll
@@ -1,7 +1,7 @@
; Test that llvm-reduce can remove uninteresting metadata from an IR file.
; The Metadata pass erases named & unnamed metadata nodes.
;
-; RUN: rm -rf %t
+; RUN: rm -f %t
; RUN: llvm-reduce --test %python --test-arg %p/Inputs/remove-metadata.py %s -o %t
; RUN: cat %t | FileCheck -implicit-check-not=! %s
Index: llvm/test/Reduce/remove-global-vars.ll
===================================================================
--- llvm/test/Reduce/remove-global-vars.ll
+++ llvm/test/Reduce/remove-global-vars.ll
@@ -1,7 +1,7 @@
; Test that llvm-reduce can remove uninteresting Global Variables as well as
; their direct uses (which in turn are replaced with 'undef').
;
-; RUN: rm -rf %t
+; RUN: rm -f %t
; RUN: llvm-reduce --test %python --test-arg %p/Inputs/remove-global-vars.py %s -o %t
; RUN: cat %t | FileCheck -implicit-check-not=uninteresting %s
Index: llvm/test/Reduce/remove-funcs.ll
===================================================================
--- llvm/test/Reduce/remove-funcs.ll
+++ llvm/test/Reduce/remove-funcs.ll
@@ -1,7 +1,7 @@
; Test that llvm-reduce can remove uninteresting functions as well as
; their InstCalls.
;
-; RUN: rm -rf %t
+; RUN: rm -f %t
; RUN: llvm-reduce --test %python --test-arg %p/Inputs/remove-funcs.py %s -o %t
; RUN: cat %t | FileCheck -implicit-check-not=uninteresting %s
Index: llvm/test/Reduce/remove-args.ll
===================================================================
--- llvm/test/Reduce/remove-args.ll
+++ llvm/test/Reduce/remove-args.ll
@@ -1,6 +1,6 @@
; Test that llvm-reduce can remove uninteresting function arguments from function definitions as well as their calls.
;
-; RUN: rm -rf %t
+; RUN: rm -f %t
; RUN: llvm-reduce --test %python --test-arg %p/Inputs/remove-args.py %s -o %t
; RUN: cat %t | FileCheck -implicit-check-not=uninteresting %s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83432.276567.patch
Type: text/x-patch
Size: 3911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200708/ff7eea1b/attachment.bin>
More information about the llvm-commits
mailing list