]> granicus.if.org Git - clang/commitdiff
Switch to the canonical pipe-based testing of clang output using
authorChandler Carruth <chandlerc@gmail.com>
Fri, 20 Jul 2012 00:49:53 +0000 (00:49 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 20 Jul 2012 00:49:53 +0000 (00:49 +0000)
FileCheck.

This avoids copying files around needlessly during test runs.

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

test/Tooling/clang-ast-dump.cpp

index 99e550b274ee2bc04398c28dd4cceb85515b4db6..3847bc6fad291ca391aa5da459d5ae0de8de0d1b 100644 (file)
@@ -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