From 61a928720ade9c154a9b2e2c4777a4e4e28b2e89 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Mon, 5 Nov 2012 18:28:45 +0000 Subject: [PATCH] Following the example from loop-convert tests, simplifying the remove-cstr-calls lit script. Patch by Edwin Vane. llvm-svn: 167390 --- clang-tools-extra/test/remove-cstr-calls/basic.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/clang-tools-extra/test/remove-cstr-calls/basic.cpp b/clang-tools-extra/test/remove-cstr-calls/basic.cpp index d15746a0046c..4aabf1cece0c 100644 --- a/clang-tools-extra/test/remove-cstr-calls/basic.cpp +++ b/clang-tools-extra/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 class allocator {};