Following the example from loop-convert tests, simplifying the remove-cstr-calls lit script.

Patch by Edwin Vane.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@167390 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/remove-cstr-calls/basic.cpp b/test/remove-cstr-calls/basic.cpp
index d15746a..4aabf1c 100644
--- a/test/remove-cstr-calls/basic.cpp
+++ b/test/remove-cstr-calls/basic.cpp
@@ -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 {};