<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;">More details on the failure of this test on a VS buildbot machine. Hope this helps.<div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">FAIL: Clang-Unit :: Tooling/Release/ToolingTests.exe/ClangToolTest.InjectDiagnosticConsumerInBuildASTs (6620 of 6748)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  ******************** TEST 'Clang-Unit :: Tooling/Release/ToolingTests.exe/ClangToolTest.InjectDiagnosticConsumerInBuildASTs' FAILED ********************</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  Note: Google Test filter = ClangToolTest.InjectDiagnosticConsumerInBuildASTs</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [==========] Running 1 test from 1 test case.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [----------] Global test environment set-up.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [----------] 1 test from ClangToolTest</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [ RUN      ] ClangToolTest.InjectDiagnosticConsumerInBuildASTs</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">..\..\..\..\..\..\src\tools\clang\unittests\Tooling\ToolingTest.cpp(332): error : Value of: ASTs.size() [C:\public\zorg\buildbot\smooshlab\slave-0.8\...\clang-build\223482\tools\clang\test\check-clang.vcxproj]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">    Actual: 0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  Expected: 1u</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  Which is: 1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [  FAILED  ] ClangToolTest.InjectDiagnosticConsumerInBuildASTs (0 ms)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [----------] 1 test from ClangToolTest (0 ms total)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [----------] Global test environment tear-down</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [==========] 1 test from 1 test case ran. (0 ms total)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [  PASSED  ] 0 tests.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [  FAILED  ] 1 test, listed below:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  [  FAILED  ] ClangToolTest.InjectDiagnosticConsumerInBuildASTs</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">   1 FAILED TEST</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  Error while processing C:\<a href="http://a.cc">a.cc</a>.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></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><br></div><div>- Thank you </div><div>   - Fariborz</div><div><br></div><div><div>On Nov 12, 2013, at 11:11 AM, jahanian <<a href="mailto:fjahanian@apple.com">fjahanian@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div 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><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br></blockquote></div><br></div></div>_______________________________________________<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>