Skip to content

Commit 4c370c5

Browse files
committed
[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
1 parent 0a62fb5 commit 4c370c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/profile/instrprof-error.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_profgen -o %t -O3 %s
2-
// RUN: env LLVM_PROFILE_FILE="/" LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s
2+
// RUN: env LLVM_PROFILE_FILE="%t/" LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s
33

44
int main(int argc, const char *argv[]) {
55
if (argc < 2)

0 commit comments

Comments
 (0)