summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-03-30 01:30:47 +0000
committerVedant Kumar <vsk@apple.com>2016-03-30 01:30:47 +0000
commit989bc4bfd616ac98e1c50682d600f1d7df616048 (patch)
tree682dfa91ba189a0d2db05dc73eb1b3b3feb1e487
parentf43d15009c50522fac917b669bf367fb592cc6cd (diff)
downloadbcm5719-llvm-989bc4bfd616ac98e1c50682d600f1d7df616048.tar.gz
bcm5719-llvm-989bc4bfd616ac98e1c50682d600f1d7df616048.zip
[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! llvm-svn: 264817
-rw-r--r--compiler-rt/test/profile/instrprof-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/profile/instrprof-error.c b/compiler-rt/test/profile/instrprof-error.c
index 7b10ed58d32..2e4672c8b1b 100644
--- a/compiler-rt/test/profile/instrprof-error.c
+++ b/compiler-rt/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)
OpenPOWER on IntegriCloud