[llvm-branch-commits] [cfe-branch] r158018 - /cfe/branches/tooling/unittests/Tooling/RefactoringTest.cpp

Manuel Klimek klimek at google.com
Tue Jun 5 12:48:27 PDT 2012


Author: klimek
Date: Tue Jun  5 14:48:27 2012
New Revision: 158018

URL: http://llvm.org/viewvc/llvm-project?rev=158018&view=rev
Log:
Fixes the refactoring test when run from VS2010.

Modified:
    cfe/branches/tooling/unittests/Tooling/RefactoringTest.cpp

Modified: cfe/branches/tooling/unittests/Tooling/RefactoringTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/tooling/unittests/Tooling/RefactoringTest.cpp?rev=158018&r1=158017&r2=158018&view=diff
==============================================================================
--- cfe/branches/tooling/unittests/Tooling/RefactoringTest.cpp (original)
+++ cfe/branches/tooling/unittests/Tooling/RefactoringTest.cpp Tue Jun  5 14:48:27 2012
@@ -61,6 +61,7 @@
     std::string Result;
     llvm::raw_string_ostream OS(Result);
     Rewrite.getEditBuffer(ID).write(OS);
+    OS.flush();
     return Result;
   }
 





More information about the llvm-branch-commits mailing list