[cfe-commits] [clang-tools-extra] r167390 - /clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp

Manuel Klimek klimek at google.com
Mon Nov 5 10:28:45 PST 2012


Author: klimek
Date: Mon Nov  5 12:28:45 2012
New Revision: 167390

URL: http://llvm.org/viewvc/llvm-project?rev=167390&view=rev
Log:
Following the example from loop-convert tests, simplifying the remove-cstr-calls lit script.

Patch by Edwin Vane.

Modified:
    clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp

Modified: clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp?rev=167390&r1=167389&r2=167390&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp (original)
+++ clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp Mon Nov  5 12:28:45 2012
@@ -1,12 +1,7 @@
-// RUN: rm -rf %t
-// RUN: mkdir %t
-// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\//g' > %t/compile_commands.json
-// RUN: cp "%s" "%t/test.cpp"
-// RUN: remove-cstr-calls "%t" "%t/test.cpp"
-// RUN: cat "%t/test.cpp" | FileCheck %s
+// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
+// RUN: remove-cstr-calls . %t.cpp --
+// RUN: FileCheck -input-file=%t.cpp %s
 // REQUIRES: shell
-// FIXME: implement a mode for refactoring tools that takes input from stdin
-// and writes output to stdout for easier testing of tools. 
 
 namespace std {
 template<typename T> class allocator {};





More information about the cfe-commits mailing list