[llvm] 6bb93e3 - [gcov][test] Add mkdir -p %t && cd %t

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 11:09:57 PDT 2020


Author: Fangrui Song
Date: 2020-06-09T11:09:50-07:00
New Revision: 6bb93e3dd0e28dafe6d3ddb700d2036d00b323aa

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

LOG: [gcov][test] Add mkdir -p %t && cd %t

This allows an alternative lit runner (which does not chdir to %T)
to run within a read-only source tree.

Added: 
    

Modified: 
    llvm/test/Transforms/GCOVProfiling/global-ctor.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/GCOVProfiling/global-ctor.ll b/llvm/test/Transforms/GCOVProfiling/global-ctor.ll
index 596a2ad77635..e90385c7c42e 100644
--- a/llvm/test/Transforms/GCOVProfiling/global-ctor.ll
+++ b/llvm/test/Transforms/GCOVProfiling/global-ctor.ll
@@ -1,5 +1,6 @@
 ;; For a global constructor, _GLOBAL__sub_I_ only has artificial lines.
 ;; Test that we don't instrument those functions.
+; RUN: mkdir -p %t && cd %t
 ; RUN: opt -S -insert-gcov-profiling < %s | FileCheck %s
 ; RUN: opt -S -passes=insert-gcov-profiling < %s | FileCheck %s
 


        


More information about the llvm-commits mailing list