[GCOVProfiling][test] Ensure that 'opt' drops any files in a temp directory
authorDmitri Gribenko <gribozavr@gmail.com>
Sun, 20 Jun 2021 20:48:35 +0000 (22:48 +0200)
committerDmitri Gribenko <gribozavr@gmail.com>
Sun, 20 Jun 2021 20:48:35 +0000 (22:48 +0200)
llvm/test/Transforms/GCOVProfiling/noprofile.ll

index 6a84fb7..0a476a7 100644 (file)
@@ -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 {