From 6bb93e3dd0e28dafe6d3ddb700d2036d00b323aa Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 9 Jun 2020 11:07:25 -0700 Subject: [PATCH] [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. --- llvm/test/Transforms/GCOVProfiling/global-ctor.ll | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/test/Transforms/GCOVProfiling/global-ctor.ll b/llvm/test/Transforms/GCOVProfiling/global-ctor.ll index 596a2ad..e90385c 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 -- 2.7.4