r262487 - test/Driver/cl-pch-errorhandling.cpp: Copy input file to a temporary

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 2 12:54:22 PST 2016


Thanks!

On Wed, Mar 2, 2016 at 6:27 AM, Daniel Jasper via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> Author: djasper
> Date: Wed Mar  2 08:26:59 2016
> New Revision: 262487
>
> URL: http://llvm.org/viewvc/llvm-project?rev=262487&view=rev
> Log:
> test/Driver/cl-pch-errorhandling.cpp: Copy input file to a temporary
> location as we cannot assume the location of the input file to be
> writable.
>
> Modified:
>     cfe/trunk/test/Driver/cl-pch-errorhandling.cpp
>
> Modified: cfe/trunk/test/Driver/cl-pch-errorhandling.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-pch-errorhandling.cpp?rev=262487&r1=262486&r2=262487&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/Driver/cl-pch-errorhandling.cpp (original)
> +++ cfe/trunk/test/Driver/cl-pch-errorhandling.cpp Wed Mar  2 08:26:59 2016
> @@ -6,7 +6,8 @@
>  // code generation, which makes this test require an x86 backend.
>  // REQUIRES: x86-registered-target
>
> -// RUN: not %clang_cl -internal-enable-pch -Werror /Yc%S/Inputs/pchfile.h
> /FI%S/Inputs/pchfile.h /c -DERR_HEADER -- %s 2>&1 \
> +// RUN: cp %S/Inputs/pchfile.h %t.h
> +// RUN: not %clang_cl -internal-enable-pch -Werror /Yc%t.h /FI%t.h /c
> -DERR_HEADER -- %s 2>&1 \
>  // RUN:   | FileCheck %s
>
>  // CHECK: nope1
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160302/51a3521a/attachment.html>


More information about the cfe-commits mailing list