[compiler-rt] r264817 - [profile] Test error reporting by writing to a temp directory

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 29 19:03:36 PDT 2016


Can you remove the quotes? None of the other tests seem to need them.

-- Sean Silva

On Tue, Mar 29, 2016 at 6:30 PM, Vedant Kumar via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: vedantk
> Date: Tue Mar 29 20:30:47 2016
> New Revision: 264817
>
> URL: http://llvm.org/viewvc/llvm-project?rev=264817&view=rev
> Log:
> [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!
>
> Modified:
>     compiler-rt/trunk/test/profile/instrprof-error.c
>
> Modified: compiler-rt/trunk/test/profile/instrprof-error.c
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-error.c?rev=264817&r1=264816&r2=264817&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/test/profile/instrprof-error.c (original)
> +++ compiler-rt/trunk/test/profile/instrprof-error.c Tue Mar 29 20:30:47
> 2016
> @@ -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)
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160329/5dac7cba/attachment.html>


More information about the llvm-commits mailing list