[llvm] a4370b2 - Use temporary directory for tests in D74346

Kirill Bobyrev via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 03:19:46 PST 2020


Author: Kirill Bobyrev
Date: 2020-02-24T12:19:07+01:00
New Revision: a4370b2ec4624c8aceb2754cf916b98c2bfc1914

URL: https://github.com/llvm/llvm-project/commit/a4370b2ec4624c8aceb2754cf916b98c2bfc1914
DIFF: https://github.com/llvm/llvm-project/commit/a4370b2ec4624c8aceb2754cf916b98c2bfc1914.diff

LOG: Use temporary directory for tests in D74346

Added: 
    

Modified: 
    llvm/test/Other/cfg_deopt_unreach.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Other/cfg_deopt_unreach.ll b/llvm/test/Other/cfg_deopt_unreach.ll
index 25fae44ed250..72f23b58bc0d 100644
--- a/llvm/test/Other/cfg_deopt_unreach.ll
+++ b/llvm/test/Other/cfg_deopt_unreach.ll
@@ -1,11 +1,13 @@
-; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-dot-filename-prefix=unreach 2>/dev/null
-; RUN: FileCheck %s -input-file=unreach.callee.dot -check-prefix=UNREACH
-; RUN: opt < %s -analyze -dot-cfg -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=deopt 2>/dev/null
-; RUN: FileCheck %s -input-file=deopt.callee.dot -check-prefix=DEOPT
-; RUN: opt < %s -analyze -dot-cfg -cfg-dot-filename-prefix=no-flags 2>/dev/null
-; RUN: FileCheck %s -input-file=no-flags.callee.dot -check-prefix=NO-FLAGS
-; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=both-flags 2>/dev/null
-; RUN: FileCheck %s -input-file=both-flags.callee.dot -check-prefix=BOTH-FLAGS
+; RUN: rm -rf %t
+; RUN: mkdir -p %t
+; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-dot-filename-prefix=%t/unreach 2>/dev/null
+; RUN: FileCheck %s -input-file=%t/unreach.callee.dot -check-prefix=UNREACH
+; RUN: opt < %s -analyze -dot-cfg -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=%t/deopt 2>/dev/null
+; RUN: FileCheck %s -input-file=%t/deopt.callee.dot -check-prefix=DEOPT
+; RUN: opt < %s -analyze -dot-cfg -cfg-dot-filename-prefix=%t/no-flags 2>/dev/null
+; RUN: FileCheck %s -input-file=%t/no-flags.callee.dot -check-prefix=NO-FLAGS
+; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=%t/both-flags 2>/dev/null
+; RUN: FileCheck %s -input-file=%t/both-flags.callee.dot -check-prefix=BOTH-FLAGS
 
 declare i8 @llvm.experimental.deoptimize.i8(...)
 


        


More information about the llvm-commits mailing list