<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Test is failing on Wondows buildbot.<div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Failing Tests (1):</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> Clang-Unit :: Tooling/Release/ToolingTests.exe/ClangToolTest.InjectDiagnosticConsumerInBuildASTs</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">- Fariborz</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div><div>On Nov 12, 2013, at 9:53 AM, Manuel Klimek <<a href="mailto:klimek@google.com">klimek@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Author: klimek<br>Date: Tue Nov 12 11:53:18 2013<br>New Revision: 194494<br><br>URL: <a href="http://llvm.org/viewvc/llvm-project?rev=194494&view=rev">http://llvm.org/viewvc/llvm-project?rev=194494&view=rev</a><br>Log:<br>Add test for injecting diagnostic consumers into a ClangTool.<br><br>As suggested by pcc on 194226.<br><br>Modified:<br> cfe/trunk/unittests/Tooling/ToolingTest.cpp<br><br>Modified: cfe/trunk/unittests/Tooling/ToolingTest.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/ToolingTest.cpp?rev=194494&r1=194493&r2=194494&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/ToolingTest.cpp?rev=194494&r1=194493&r2=194494&view=diff</a><br>==============================================================================<br>--- cfe/trunk/unittests/Tooling/ToolingTest.cpp (original)<br>+++ cfe/trunk/unittests/Tooling/ToolingTest.cpp Tue Nov 12 11:53:18 2013<br>@@ -321,5 +321,17 @@ TEST(ClangToolTest, InjectDiagnosticCons<br> EXPECT_EQ(1u, Consumer.NumDiagnosticsSeen);<br> }<br><br>+TEST(ClangToolTest, InjectDiagnosticConsumerInBuildASTs) {<br>+ FixedCompilationDatabase Compilations("/", std::vector<std::string>());<br>+ ClangTool Tool(Compilations, std::vector<std::string>(1, "/<a href="http://a.cc">a.cc</a>"));<br>+ Tool.mapVirtualFile("/<a href="http://a.cc">a.cc</a>", "int x = undeclared;");<br>+ TestDiagnosticConsumer Consumer;<br>+ Tool.setDiagnosticConsumer(&Consumer);<br>+ std::vector<ASTUnit*> ASTs;<br>+ Tool.buildASTs(ASTs);<br>+ EXPECT_EQ(1u, ASTs.size());<br>+ EXPECT_EQ(1u, Consumer.NumDiagnosticsSeen);<br>+}<br>+<br> } // end namespace tooling<br> } // end namespace clang<br><br><br>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits<br></blockquote></div><br></div></body></html>