[PATCH] Fix dependency-generation-crash test to actually execute clang and to clean up after itself

Greg Bedwell gregbedwell at gmail.com
Thu Feb 12 04:49:49 PST 2015


Thanks for the review!
Committed revision 228919

-Greg

On 12 February 2015 at 12:43, Greg Bedwell <greg_bedwell at sn.scee.net> wrote:

> REPOSITORY
>   rL LLVM
>
> http://reviews.llvm.org/D7534
>
> Files:
>   cfe/trunk/test/Frontend/dependency-generation-crash.c
>
> Index: cfe/trunk/test/Frontend/dependency-generation-crash.c
> ===================================================================
> --- cfe/trunk/test/Frontend/dependency-generation-crash.c
> +++ cfe/trunk/test/Frontend/dependency-generation-crash.c
> @@ -1,4 +1,8 @@
>  // RUN: touch %t
>  // RUN: chmod 0 %t
> -// %clang -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null
> +// RUN: not %clang_cc1 -E -dependency-file bla -MT %t -MP -o %t -x c
> /dev/null 2>&1 | FileCheck %s
> +// RUN: rm -f %t
> +
> +// CHECK: error: unable to open output file
> +
>  // rdar://9286457
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150212/7c37543f/attachment.html>


More information about the cfe-commits mailing list