summaryrefslogtreecommitdiff
path: root/test/profile/instrprof-write-file-only.c
AgeCommit message (Collapse)Author
2016-03-26[libprofile] Adjust dummy condition to be more forgiving.Sean Silva
On PS4, we have to fake environment variables by passing extra command line arguments, so the dummy test `argc > 1` was failing. The condition is just a dummy condition that the compiler can't fold away, so the number is arbitrary as long as the condition is false. Increase the number it compares against. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@264491 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-15Update lib/profile tests for metadata assembly changeDuncan P. N. Exon Smith
Running the upgrade script from PR21532. Hopefully this will unstick compiler-rt bots [1] after r224257. [1]: http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA_check/181/ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224276 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-18profile: Robustify instrprof testsJustin Bogner
Change these tests not to rely on the exact metadata numbers the profile data gets. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222279 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-13InstrProf: support PowerPC64Jay Foad
Summary: I don't know anything about profiling but it seems to work out of the box on PowerPC64. At least "make check-profile" works. A few tests needed tweaking because PowerPC64 IR declares main with "define signext i32 @main" instead of just "define i32 @main". This also fixes the asan asan_and_llvm_coverage_test test, which compiles with -coverage so requires that a profiling version of libclang_rt has been built. Reviewers: dexonsmith, kcc, samsonov Reviewed By: samsonov Subscribers: samsonov, llvm-commits Differential Revision: http://reviews.llvm.org/D6233 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@221877 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-18profile: explicitly initialize file name in the testSaleem Abdulrasool
The instrprofile-write-file-only test was failing on the builtbots. The runtime library initialization is explicitly being discarded to avoid the atexit hook. However, this would also prevent the filename from being initialized. Thus, when the write file was invoked, the filename would not be setup, and the test would fail as the profiling data would never be written out. Explicitly initialize the filename to ensure that the data is written out when requested. This should hopefully finally get the build bots all green again. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209099 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-15Fix typosAlp Toker
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208841 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-09InstrProf: Test the functions in the runtimeDuncan P. N. Exon Smith
Check that the profile runtime works as expected. This tests the functions that are meant to be available to advanced users. In particular, check that the `atexit()` hook can be disabled by defining a custom `__llvm_profile_runtime` variable, that the libc dependencies are optional, and that the various functions for writing out files work for basic cases. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208460 91177308-0d34-0410-b5e6-96231b3b80d8