[llvm] ffa252e - [GCOVProfiling][test] Ensure that 'opt' drops any files in a temp directory

Dmitri Gribenko via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 20 13:50:07 PDT 2021


Author: Dmitri Gribenko
Date: 2021-06-20T22:48:35+02:00
New Revision: ffa252e8ce2465893f2c798b0586695f03a68d18

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

LOG: [GCOVProfiling][test] Ensure that 'opt' drops any files in a temp directory

Added: 
    

Modified: 
    llvm/test/Transforms/GCOVProfiling/noprofile.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/GCOVProfiling/noprofile.ll b/llvm/test/Transforms/GCOVProfiling/noprofile.ll
index 6a84fb7334a0e..0a476a759f9bf 100644
--- a/llvm/test/Transforms/GCOVProfiling/noprofile.ll
+++ b/llvm/test/Transforms/GCOVProfiling/noprofile.ll
@@ -1,5 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -passes=insert-gcov-profiling -S %s | FileCheck %s
+; RUN: mkdir -p %t && cd %t
+; RUN: opt < %s -passes=insert-gcov-profiling -S | FileCheck %s
 
 ; Test that the noprofile attribute disables profiling.
 define dso_local i32 @no_instr(i32 %a) noprofile !dbg !9 {


        


More information about the llvm-commits mailing list