Skip to content

Commit

Permalink
[profile] Test error reporting by writing to a temp directory
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vedantk committed Mar 30, 2016
1 parent f43d150 commit 989bc4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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)
Expand Down

0 comments on commit 989bc4b

Please sign in to comment.