summaryrefslogtreecommitdiff
path: root/test/profile/instrprof-basic.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-07-21 01:53:41 +0000
committerXinliang David Li <davidxl@google.com>2016-07-21 01:53:41 +0000
commit7e0b65068ce6ff83d5e551fded74aafe84f25d43 (patch)
tree18af0b9b40f7bb7843c3f25714a7a7bda6792fa0 /test/profile/instrprof-basic.c
parent25323c851bd420fe7ad4d6f3e94e3fce4263be9e (diff)
[Profile] Cleanup test to use new dir input feature
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@276225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile/instrprof-basic.c')
-rw-r--r--test/profile/instrprof-basic.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/profile/instrprof-basic.c b/test/profile/instrprof-basic.c
index 02549e150..197963093 100644
--- a/test/profile/instrprof-basic.c
+++ b/test/profile/instrprof-basic.c
@@ -1,20 +1,19 @@
-// REQUIRES: shell
// RUN: %clang_profgen -o %t -O3 %s
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
// RUN: llvm-profdata merge -o %t.profdata %t.profraw
// RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s --check-prefix=COMMON --check-prefix=ORIG
//
-// RUN: rm -f %t.profraw_e_*
-// RUN: env LLVM_PROFILE_FILE=%t.profraw_e_%1m %run %t
-// RUN: env LLVM_PROFILE_FILE=%t.profraw_e_%1m %run %t
-// RUN: llvm-profdata merge -o %t.em.profdata %t.profraw_e_*
+// RUN: mkdir -p %t.dir1
+// RUN: env LLVM_PROFILE_FILE=%t.dir1/profraw_e_%1m %run %t
+// RUN: env LLVM_PROFILE_FILE=%t.dir1/profraw_e_%1m %run %t
+// RUN: llvm-profdata merge -o %t.em.profdata %t.dir1
// RUN: %clang_profuse=%t.em.profdata -o - -S -emit-llvm %s | FileCheck %s --check-prefix=COMMON --check-prefix=MERGE
//
-// RUN: %clang_profgen=%t.%m.profraw -o %t.merge -O3 %s
-// RUN: rm -f %t.*.profraw*
+// RUN: mkdir -p %t.dir2
+// RUN: %clang_profgen=%t.dir2/%m.profraw -o %t.merge -O3 %s
// RUN: %run %t.merge
// RUN: %run %t.merge
-// RUN: llvm-profdata merge -o %t.m.profdata %t.*.profraw
+// RUN: llvm-profdata merge -o %t.m.profdata %t.dir2/
// RUN: %clang_profuse=%t.m.profdata -o - -S -emit-llvm %s | FileCheck %s --check-prefix=COMMON --check-prefix=MERGE
int begin(int i) {