[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.
This commit is contained in:
Fangrui Song 2020-06-09 11:07:25 -07:00
parent 7cc81c9a51
commit d2790b14ca

View File

@ -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