diff options
author | Vedant Kumar <vsk@apple.com> | 2016-03-30 01:30:47 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-03-30 01:30:47 +0000 |
commit | 4c370c5d3e82c2e043b83b778950ca3056976e9f (patch) | |
tree | d6f72512e7df61c17d53f5a467edf4761f176ac2 /test | |
parent | 0a62fb5b59926f5362f3ad261f0ad1151491e8c9 (diff) |
[profile] Test error reporting by writing to a temp directory
This test case is meant to check whether verbose error logging works. It
does this by _failing_ to write a profile to a path corresponding to a
directory. Make this clearer by writing to a temporary directory.
Patch suggested by Sean Silva!
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@264817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/profile/instrprof-error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/profile/instrprof-error.c b/test/profile/instrprof-error.c index 7b10ed58d..2e4672c8b 100644 --- a/test/profile/instrprof-error.c +++ b/test/profile/instrprof-error.c @@ -1,5 +1,5 @@ // RUN: %clang_profgen -o %t -O3 %s -// RUN: env LLVM_PROFILE_FILE="/" LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s +// RUN: env LLVM_PROFILE_FILE="%t/" LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s int main(int argc, const char *argv[]) { if (argc < 2) |