diff options
author | Xinliang David Li <davidxl@google.com> | 2016-06-10 16:23:32 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-06-10 16:23:32 +0000 |
commit | 91c5e0ee10290fafc3420a4af7132ec92e8709c5 (patch) | |
tree | 8e448ff1b628c0edc8a9af88f7ee5300faac4653 /test/profile/Linux | |
parent | 01533af17f95d7780af69a95e3c7dafc8609a9e3 (diff) |
[profile] fix bot failure on darwin
Profile setting accross shared lib is broken on darwin (to be investigated).
Move the test to Linux only for now
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@272404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile/Linux')
-rw-r--r-- | test/profile/Linux/instrprof-set-filename-shared.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/profile/Linux/instrprof-set-filename-shared.test b/test/profile/Linux/instrprof-set-filename-shared.test new file mode 100644 index 000000000..cea0b4837 --- /dev/null +++ b/test/profile/Linux/instrprof-set-filename-shared.test @@ -0,0 +1,8 @@ +# Test that __llvm_profile_set_filename is honored by shared libary too. +RUN: mkdir -p %t.d +RUN: %clang -fprofile-instr-generate=%t.shared.profraw -fPIC -shared -o %t.d/t.shared %S/../Inputs/instrprof-dlopen-func.c +RUN: %clang_profgen -DCALL_SHARED -o %t.m -O3 -rpath %t.d %t.d/t.shared %S/../instrprof-set-filename.c +RUN: %run %t.m %t.main.profraw +RUN: llvm-profdata show %t.main.profraw | FileCheck --check-prefix=SHARED %s + +# SHARED: Total functions: 2 |