]> granicus.if.org Git - clang/commitdiff
clang-cl: set output of lit-test to a tmp file after r344234
authorEric Liu <ioeric@google.com>
Thu, 11 Oct 2018 17:49:20 +0000 (17:49 +0000)
committerEric Liu <ioeric@google.com>
Thu, 11 Oct 2018 17:49:20 +0000 (17:49 +0000)
Some test frameworks do not allow output file in CWD.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344266 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/cl-showfilenames.c

index 39620036e1055e9922b027ecb0fc8cd87c2cbdbe..fff7cb4d5990a89714f0f283a1bdead749ac8529 100644 (file)
@@ -1,8 +1,8 @@
-// RUN: %clang_cl /c /showFilenames -- %s 2>&1 | FileCheck -check-prefix=show %s
-// RUN: %clang_cl /c /showFilenames -- %s %S/Inputs/wildcard*.c 2>&1 | FileCheck -check-prefix=multiple %s
+// RUN: %clang_cl /c /o %t.obj /showFilenames -- %s 2>&1 | FileCheck -check-prefix=show %s
+// RUN: %clang_cl /c /o %t.obj /showFilenames -- %s %S/Inputs/wildcard*.c 2>&1 | FileCheck -check-prefix=multiple %s
 
-// RUN: %clang_cl /c -- %s 2>&1 | FileCheck -check-prefix=noshow %s
-// RUN: %clang_cl /c /showFilenames /showFilenames- -- %s 2>&1 | FileCheck -check-prefix=noshow %s
+// RUN: %clang_cl /c /o %t.obj -- %s 2>&1 | FileCheck -check-prefix=noshow %s
+// RUN: %clang_cl /c /o %t.obj /showFilenames /showFilenames- -- %s 2>&1 | FileCheck -check-prefix=noshow %s
 
 
 #pragma message "Hello"