[clang-rename] revert r276836
Revert r276836, which resulted in tests passing regardless of the actual tool
replacements.
llvm-svn: 277354
diff --git a/clang-tools-extra/test/clang-rename/Variable.cpp b/clang-tools-extra/test/clang-rename/Variable.cpp
index 5d356ff..02935bd 100644
--- a/clang-tools-extra/test/clang-rename/Variable.cpp
+++ b/clang-tools-extra/test/clang-rename/Variable.cpp
@@ -1,4 +1,6 @@
-// RUN: clang-rename -offset=87 -new-name=Bar %s -- | FileCheck %s
+// RUN: cat %s > %t.cpp
+// RUN: clang-rename -offset=148 -new-name=Bar %t.cpp -i --
+// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
namespace A {
int Foo; // CHECK: int Bar;
@@ -21,5 +23,5 @@
Foo = b.Foo; // Foo = b.Foo;
}
-// Use grep -FUbo 'Foo' <file> to get the correct offset of Foo when changing
+// Use grep -FUbo 'Foo' <file> to get the correct offset of foo when changing
// this file.