[cfe-commits] r160535 - /cfe/trunk/test/Tooling/clang-ast-dump.cpp
Chandler Carruth
chandlerc at gmail.com
Thu Jul 19 17:49:54 PDT 2012
Author: chandlerc
Date: Thu Jul 19 19:49:53 2012
New Revision: 160535
URL: http://llvm.org/viewvc/llvm-project?rev=160535&view=rev
Log:
Switch to the canonical pipe-based testing of clang output using
FileCheck.
This avoids copying files around needlessly during test runs.
Modified:
cfe/trunk/test/Tooling/clang-ast-dump.cpp
Modified: cfe/trunk/test/Tooling/clang-ast-dump.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Tooling/clang-ast-dump.cpp?rev=160535&r1=160534&r2=160535&view=diff
==============================================================================
--- cfe/trunk/test/Tooling/clang-ast-dump.cpp (original)
+++ cfe/trunk/test/Tooling/clang-ast-dump.cpp Thu Jul 19 19:49:53 2012
@@ -1,6 +1,4 @@
-// RUN: rm -f %t
-// RUN: clang-ast-dump "%s" -f test_namespace::TheClass::theMethod -- -c > %t 2>&1
-// RUN: FileCheck --input-file=%t %s
+// RUN: clang-ast-dump "%s" -f test_namespace::TheClass::theMethod -- -c 2>&1 | FileCheck %s
// FIXME: Does this run regardless of +Asserts?
// REQUIRES: asserts
More information about the cfe-commits
mailing list