aboutsummaryrefslogtreecommitdiff
path: root/test/Tooling
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2013-03-15 20:14:01 +0000
committerEdwin Vane <edwin.vane@intel.com>2013-03-15 20:14:01 +0000
commitad7e160e36a5010358ef33c4c81904297d62b9b2 (patch)
treef9bda2f891bafe92bd7f37d45610516b3993e531 /test/Tooling
parentc90cc9374f18396251760b9fe6468fd1232e9f0e (diff)
ClangTool output cleanup
Information messages sent to stdout by ClangTool now only happen when the -debug flag is set. Error messages that used to go to stdout now go to stderr. Author: Ariel J Bernal <ariel.j.bernal@intel.com> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Tooling')
-rw-r--r--test/Tooling/pch.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/Tooling/pch.cpp b/test/Tooling/pch.cpp
index 715c95dd55..40bc1e9731 100644
--- a/test/Tooling/pch.cpp
+++ b/test/Tooling/pch.cpp
@@ -6,12 +6,10 @@
// RUN: %clang -x c++-header %S/Inputs/pch.h -o %t1
// Use the generated pch and enforce a subsequent stat miss by using
-// the test file with an unrelated include as second translation unit:
-// Do not directly pipe into FileCheck, as that would hide errors from
-// valgrind due to pipefail not being set in lit.
-// RUN: clang-check "%S/Inputs/pch.cpp" "%s" -- -include-pch %t1 -I "%S" -c >%t2 2>&1
-// RUN: FileCheck %s < %t2
+// the test file with an unrelated include as second translation unit.
+// Test for an non-empty file after clang-check is executed.
+// RUN: clang-check -ast-dump "%S/Inputs/pch.cpp" "%s" -- -include-pch %t1 -I "%S" -c >%t2 2>&1
+// REQUIRES: shell
+// RUN: test -s %t2
#include "Inputs/pch-fail.h"
-
-// CHECK: Processing